Note | ||
---|---|---|
| ||
WIP! Restricted access. |
Let's take a simple scenario where a BPMN process reads some content (text message) that is stored in the product registry and passes the message to a target variable.
Tip | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Before you begin,
|
Let's get started! This tutorial includes the following sections:
...
Now, let's configure the READ task to read the content from the registry resource (TestBPMN resource) and write it to a specific target.
Select the READ task on in the canvasdiagram, go to the Properties/Main Config tab, and enter the following configurations:
...
Select the User task and apply property values:
- Go to the Properties/Main config tab and enter admin as in the assignee Assignee field.
Go to the Properties/Form tab and enter the following configurations:
Use the following values as Form properties:id Name Type Expression Required Readable Writeable variable testing string ${testing} false true false
Deploying the artifacts
Follow the steps below to deploy the registry artifacts.
- See the instructions on packaging the registry resource in Create a composite applicaition project (C-App project) to package the registry resource:
- Open the Getting Started view and click Miscellaneous → Create New Composite Application .
- In the New Composite Application Project dialog that opens, select the registry project and click Finish.
- In the Composite Application Project POM Editor that opens, under Dependencies, set the server role of the registry resource to Business Process Server as shown below.
- Open the Getting Started view and click Miscellaneous → Create New Composite Application .
- To create the Export a CAR file , do one of with the followingregistry artifacts:
- Be sure the the registry resource is selected as a dependency in th C-App project.
- Right-click the C-App project and select Export Composite Application Project from the pop-up menu. Alternatively, open the
pom.xml
file in the Composite Application Project POM Editor and click the button for creating an archive in the upper-right corner. - Specify a location to save the CAR file.
You have now exported the registry resource into a single CAR file.
- To deploy Deploy the CAR file in the Business Process server of WSO2 EI:
- Start the Business Process profile.
- Open the management console of the Business Process profile.
- Go to Main → Carbon Applications → Add and select the CAR file.
...