This is the first of three simple steps in creating a process app.
- A start event to trigger the process by submitting a new expense
- A user task to approve or reject the request
- An end event to end the process
This process also includes 2 web forms.
-
Open Alfresco Process Services from one of the following options:
- Local installation
- address - http://localhost:8080/activiti-app/#/
- sign in - admin@app.activiti.com/
- password - admin
- Cloud trial - https://activiti.alfresco.com/activiti-app/#/ (use your online trial sign in details)
- Local installation
- Select App Designer on your dashboard.
- Select Create Process.
- Give the process model a name (for example “Expense approval”) and a description, then select the BPMN Editor as the Editor type.
-
Select Create new model.
Note: If this is the first time you’ve used Alfresco Process Services then some help tips may be displayed. You can click Next to watch them or press Esc. to close them.
- The start event is displayed on the canvas as a circle. Double-click on it and type a name, for example “Submit expense”, then click on the canvas.
-
Click the circle again and drag and drop the
User task icon to the right.
This adds a user task after the start event.
-
Double-click on the user task and type a name, for example “Review”, then click on the
canvas.
-
Click the user task again and drag and drop the
end event icon (circle) to the right.
-
Double-click on the end event and type a name, for example “End process”, then click on the
canvas.
The process model now has three stages.
-
Click
Validate the model on the toolbar.
This checks models (processes, web forms, decision tables, data models, and stencils) for errors. If there are errors then a message shows you details on how to resolve them.
Once it’s validated, you can add forms to the process using the Forms editor. This example needs two forms to be added:- One for the requester to submit the expense (start event)
- One for the manager to review the expense request (user task).
You can create forms:- Directly from the Process editor (embedded in the BPMN model)
- Separately from the process model and then reference them in the design by adding a key
-
Click the start event and then click Referenced form in the
properties panel.
- Click New form in the Form reference window.
-
Give the form a name (for example “Submit expense”) and a description, the click
Create form.
This opens the Form editor.
-
Drag stencils onto the Design canvas in this order:
- Text
- Amount
- Date
- Attach File
-
Hover over the Text stencil and click the
Edit icon, then type "Text" as the Label and click Close.
Repeat this step for the other stencils you added, and type the following labels:
- Amount
- Date
- Attachment
-
Click
Save then Save and close editor.
- In the Process editor click the review expense user task and then click Referenced form in the properties panel.
- Give the form a name (for example “Expense review”) and a description, the click Create form.
-
Drag stencils onto the Design canvas in this order:
- Text
- Amount
- Date
- Attach File
-
Hover over the Text stencil and click the Edit icon, then type "Text" as the Label and
click Close.
Repeat this step for the other stencils you added, and type the following labels:
- Amount
- Date
- Attachment
- Click the Outcomes tab to add a custom outcome so that the reviewer can approve or reject the expense.
-
Select Use custom outcomes for this form and in the
Possible outcomes add two outcomes:
- Approve
- Reject
-
Click
Save then Save and close editor.
-
In the Process editor click
Save then Save.