適用於 Node.js 的 Azure Logic Apps 模組Azure Logic Apps modules for Node.js

Logic Apps 提供簡化和實作雲端中可擴充整合和工作流程的途徑。Logic Apps provide a way to simplify and implement scalable integrations and workflows in the cloud. 它提供視覺化設計工具,以一系列的步驟 (也稱為工作流程) 為您的程序建立模型並加以自動化。It provides a visual designer to model and automate your process as a series of steps known as a workflow. 雲端和內部部署中有 許多連接器可快速整合各項服務和通訊協定。There are many connectors across the cloud and on-premises to quickly integrate across services and protocols. 邏輯應用程式是以觸發程序為開端 (如「當帳戶新增至 Dynamics CRM 時」),而在觸發後可以開始處理各種組合的動作、轉換和條件邏輯。A logic app begins with a trigger (like 'When an account is added to Dynamics CRM') and after firing can begin many combinations of actions, conversions, and condition logic.

使用 Logic Apps 的優點包括︰The advantages of using Logic Apps include the following:

  • 使用易於了解的設計工具來設計複雜程序以節省時間Saving time by designing complex processes using easy to understand design tools
  • 順暢地實作難以在程式碼中實作的模式和工作流程。Implementing patterns and workflows seamlessly, that would otherwise be difficult to implement in code
  • 從範本快速開始使用Getting started quickly from templates
  • 使用自己的自訂 API、程式碼和動作來自訂邏輯應用程式Customizing your logic app with your own custom APIs, code, and actions
  • 連接並同步處理跨內部部署與雲端的不同系統Connect and synchronise disparate systems across on-premises and the cloud
  • 利用頂級整合支援打造 BizTalk Server、API 管理、Azure Functions 和 Azure 服務匯流排Build off of BizTalk server, API Management, Azure Functions, and Azure Service Bus with first-class integration support

Logic Apps 是完全受控的 iPaaS (整合平台即服務),可讓開發人員不必擔心建置裝載、延展性、可用性和管理。Logic Apps is a fully managed iPaaS (integration Platform as a Service) allowing developers not to have to worry about building hosting, scalability, availability and management. 邏輯應用程式會自動相應增加以滿足需求。Logic Apps will scale up automatically to meet demand.

管理封裝Management package

安裝 npm 模組Install the npm module

安裝適用於 Node.js 的 Azure 邏輯模組Install the Azure logic module for Node.js

npm install azure-arm-logic

範例Example

const msRestAzure = require('ms-rest-azure');
const LogicManagement = require('azure-arm-logic');

msRestAzure
  .interactiveLogin()
  .then(credentials => {
    const subscriptionId = 'subscription-id';
    const client = new LogicManagement(credentials, subscriptionId);
    return client.workflows.listBySubscription();
  })
  .then(workflows => console.log(workflows));

範例Samples

深入探索可在應用程式中使用的 Node.js 程式碼範例Explore more sample Node.js code you can use in your apps.