Creating a scheme

Creating a scheme


Article: Create a scheme of workflow

We recommend adhering to the following order when creating a process scheme:

1. Create CodeActions, Actors, Command and Timers

2. Create Activity & Transitions

Create the first Activity marked as “Initial”.

Create Activities, in which the document can move from the current Activity. Link the current and new Activities with the help of Transitions.  

For each Activity indicate:

  • In the State field - the name of a document’s status. 
  • If the status can be forcefully moved into a particular state, then check the box “For set state.” 
  • If a scheme may be updated in this Activity, then check the box “Auto scheme update.” 
  • Fill in the Action calls in the boxes “Implementation” and “Pre-ExecutionImplementation.” Methods from the “Implementation” box will be called, when the document moves to a respective Activity (in “Pre-Execute” mode, methods from the “Pre-Execution Implementation” box will be called). If you use the constructor functionality to build a concordance history, then you need to add the appropriate methods in the data blocks (in our example, these are UpdateTransitionHistory and WriteTransitionHistory, respectively).

For each Transition: 

  • Indicate the value of the Classifier. Use “Direct” or “Reverse” for direct or reverse Transitions, respectively. 
  • In the “Restrictions” block, indicate  Actors with access rights for this Transition. When several Conditions are indicated, they are grouped by AND. This function is available for Trigger type equal Command. 
  • In the “Triggers” block, indicate the type of operation that initiates a Transition. 
  • In the “Condition” block, indicate the type of Condition that helps define the possibility of a Transition and choose an appropriate Transition Type.

If these Activities are final, mark them as “Final” 

3. Create Parameters and indicate them in the appropriate Commands

4. Create Localization

The workflow is ready!