Browse Source

Update POST.md

pull/9367/head
EngincanV 5 years ago
parent
commit
b0d29371b0
  1. 11
      docs/en/Community-Articles/2021-06-17-Using-Elsa-Workflow-with-ABP-Framework/POST.md
  2. BIN
      docs/en/Community-Articles/2021-06-17-Using-Elsa-Workflow-with-ABP-Framework/workflow-main-menu.jpg

11
docs/en/Community-Articles/2021-06-17-Using-Elsa-Workflow-with-ABP-Framework/POST.md

@ -36,7 +36,7 @@ dotnet ef migrations add Initial
> Default admin username is **admin** and password is **1q2w3E*** > Default admin username is **admin** and password is **1q2w3E***
## Creating First Workflow - Console Activity ## Let's Create The First Workflow (Console Activity)
We can start with creating our first workflow. Let's get started with creating a basic hello-world workflow by using console activity. In this example, we will **programmatically** define a workflow definition that displays the text **"Hello World from Elsa!"** to the console using Elsa's Workflow Builder API and run this workflow when the application initialized. We can start with creating our first workflow. Let's get started with creating a basic hello-world workflow by using console activity. In this example, we will **programmatically** define a workflow definition that displays the text **"Hello World from Elsa!"** to the console using Elsa's Workflow Builder API and run this workflow when the application initialized.
@ -113,7 +113,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex
## Creating A Workflow By Using Http Activities ## Creating A Workflow By Using Http Activities
In this example, we will create a workflow that uses **Http Activities**. It will basically listen the specified route for incoming HTTP Request and write back a simple response. In this example, we will create a workflow that uses **Http Activities**. It will basically listen the specified route for incoming HTTP Request and writes back a simple response.
### Add Elsa.Activities.Http Package ### Add Elsa.Activities.Http Package
@ -240,7 +240,10 @@ private void ConfigureElsa(ServiceConfigurationContext context, IConfiguration c
.AllowAnyOrigin() .AllowAnyOrigin()
.WithExposedHeaders("Content-Disposition")) .WithExposedHeaders("Content-Disposition"))
); );
//register controllers inside elsa
context.Services.AddAssemblyOf<Elsa.Server.Api.Endpoints.WorkflowRegistry.Get>();
//Disable antiforgery validation for elsa //Disable antiforgery validation for elsa
Configure<AbpAntiForgeryOptions>(options => Configure<AbpAntiForgeryOptions>(options =>
{ {
@ -441,8 +444,6 @@ namespace ElsaDemo.Web.Menus
* Let's run the application and see how it looks like. * Let's run the application and see how it looks like.
![workflow-main-menu-item](./workflow-main-menu.jpg)
> If the account you are logged in has the **ElsaDemoPermissions.ElsaDashboard** permission, you should see the **Workflow** menu item. If you do not see this menu item, please be assured that your logged-in account has that permission. > If the account you are logged in has the **ElsaDemoPermissions.ElsaDashboard** permission, you should see the **Workflow** menu item. If you do not see this menu item, please be assured that your logged-in account has that permission.
* Now we can click the "Workflow" menu item, display the Elsa Dashboard and designing workflows. * Now we can click the "Workflow" menu item, display the Elsa Dashboard and designing workflows.

BIN
docs/en/Community-Articles/2021-06-17-Using-Elsa-Workflow-with-ABP-Framework/workflow-main-menu.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Loading…
Cancel
Save