Skip to main content
Version: 4.2

This chapter demonstrates the detailed process of workflow creation with an example of sales order.

Make sure you have completed the following preparations.

  • Complete the organization structure with correct companies, departments, posts and personnels.
  • Create object templates, instances and their attributes, services and events.
  • Make sure object instances are bound with correct data sources.

Create pages that relate to your workflow, and make sure to link them during workflow creation.

  1. In the application, click Interface Design.
  2. Add a new page
info

Check Enabling Workflow checkbox to link the page in the workflow.

  1. Design the page and then save it.

Creating Workflow

Draw a workflow to demonstrate actual business flow with related pages and personnels.

tip

For details of each node provided by supOS, see Element Description.

  1. In Business Designer, click the Workflow Management tab.
  2. Click New, enter workflow information and then click Confirm.
  3. Click the Start Event icon, and then select nodes from the left side to draw your workflow.
  1. Click next to the last step to end the workflow.
  2. Click Publish at the upper-right corner.
tip

To edit a published workflow, you need to upgrade it by clicking Upgrade at the upper-right corner.

Creating Workflow Page

Create another page to which the workflow applies.

  1. In Business Designer, click to add a new page.
info

Make sure to check Enabling Workflow checkbox to be able to link a workflow.

  1. Add a button and a to-do list on the page, and then configure the button attribute as needed.
  2. Click Interaction on the right side, add a Single-click event to the button, and then click Setting to configure the event.
  3. Add the drawn workflow to the page.
  1. Click Finish.

Running the Workflow

info

The running process is from an example.

  1. Inside the application, go to Interface Design to preview the workflow page.
  2. Click the button, and you are directed to the bound page of this button.
  3. Enter the information as the workflow requires, and then click Submit.
  1. The page is redirected to workflow page, and a new record is added to the to-do list for approval.
  2. Click the first record, check the information and then click Submit.
info

If you have bound a service to add the approved data to the database, you can check the database to see whether the data is successfully added.