Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

...


...

CustomIf_Tutorial


This workflow executes a sequence of actions based on the result of the condition.

...


If the condition is false, the workflow will continue executing Condition False branch.


Write activity is used to display the condition result.

  • Execution result:

...

StateMachine_Tutorial

...


Common Implementation Details


Process States

...

  • _Toc396477967 Anchor_Toc399323864_Toc399323864Initialization STATE


Local Variables are configured / assigned based on the Input Data.

...

  • _Toc399323865Input Data Validation STATE


The Input Values are evaluated; if validation is successful, the process advances to the Execution state, else it advances to the Finalize Process state.

...

  • Execution STATE


In this state, the business logic of the process is implemented. In case of an successful execution, the workflow advances to the Final state.

...

  • _Toc396477971 Anchor_Toc399323868_Toc399323868Final STATE


Based on the execution of the workflow, the Output Out Arguments are assigned and a workflow Status Email can be sent.

...

...

Initialization STATE


The StateMachine Sequence begins with Initialization STATE. The flags used in this workflow to act as triggers are defined with default values as follows:

...




The condition to exit Initialization STATE and transition to Input Data Validation STATE must be evaluated by Trigger T1.


If the condition evaluated in trigger T1 is true, the workflow will exit Initialization STATE and transition to Input Data Validation STATE.

...

Input Data Validation STATE


In this state the values provided for Value1 input argument is evaluated depending on the results, the workflow will continue to the next state or it will exit.



If the value provided is negative, the Validation flag will be False:
local_ExitFlag_InputDataValidation = False
Another If activity will evaluate the flag value and if the conditions for the exit triggers will be met, the workflow will proceed to the Final state:



Exit criteria:
local_State_Execution = True - will activate the Execution STATE trigger, that will move to the Execution state.
local_State_Finalize = True – will activate the Final STATE trigger and the workflow will go to the Final state.

...

Execution STATE


At this state the workflow will increment the value of Value1 argument and compare the incremented value with the value 1. If the condition is met, the workflow will exit Execution STATE and transit to Final STATE.




Exit criteria:
local_State_Finalize = True – will activate the Final STATE trigger and the workflow will go to the Final state.

...

...

Final STATE


The final state of the workflow displays the status message on the Tracking Data panel. The message status is stored in variable local_FinalStatusText.



In StateMachine sequences, a state of type final does not have an Exit criteria because it does not transition to any other state.

  • Execution result:

...

Flowchart_Tutorial

...


Common Implementation Details


Flowchart activities

  • Flowchart

...


The condition is evaluated based on cases. If the input value is equal with the value of the case, the flow will enter that branch for execution.

...

 Flowchart Sequence


This workflow will read an input value and based on that value a case branch will be executed.

The value given by variable Value1 is evaluated with the FlowSwitch activity.


...

  • FlowDecision is used next to evaluate the length of InputString.

...

ForEach_Tutorial


This workflow executes an iteration through the elements of a collection and outputs the elements of the collection using different display activities.

...

  • Message Box activity opens a message box during the execution of the workflow. In order to proceed forward with the execution of the workflow, click OK.


  • Execution result:

...

  • TriggerWebservice activity

Input Parameters:
WorkflowName: represents the name of the published workflow as a webservice
WorkflowURL: represents the URL from Flowster Studio – Administrator , Webservices page
Argument1, Argument2, Variable1 : represent arguments for the published webservice
Image Removed
Image Removed
Output Parameters:
OutputTrigger: represents the OutputString returned by trigger webservice activity. This output will be processed and results will be extracted using XML activities and ForEach iterator.
Image Removed
Execution Result:
Image Removed