Versions Compared

Key

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

...

Info

The VariableDecisionHandler was previously called SmartformDecisionHandler FormDecisionHandler. However, it is still accessible via the class: com.dooris.bpm.actionhandler.SmartFormDecissionHandlerFormDecissionHandler.

...

Class

Code Block
com.dooris.bpm.actionhandler.VariableDecisionHandler

...

Parameter

Default value

Description

variableName

Status
titlemandatory

Status
titlen/a

Name of the process variable stored in the smartformform, based on whose value a process path is chosen.

defaultTransition

Status
titlen/a

This parameter defines which process path will be selected if the process variable is not defined or the content of the variables does not match any given transition of the gateway.

...

Parameter

Default value

Description

condition expression

The condition expression can be set arbitrarily but should fit the decision. For example:

  • Decision: Proposal status?

  • Condition 1: Approved

  • Condition 2: Declined

(e.g. proposal status? Condition expression 1: Approved. Condition expression 2: Declined).

ID

The ID is the value of the process variable set in the smartform form (value=“ID”).

Example

We want to decide between the two different paths in the workflow based on a user selection from the smartformform.

In our example, we want to send two different emails depending on whether the approval was given or declined in the smartform form on the previous task.

...

Form

In this example, VariableDecisionHandler is added at the XOR node. Smartform Form is created for this workflow with a radio button which has a name decision as a variable name. Radio button setting is in the below screenshot. decision variable is used for VariableDecisionHandler which defines the routes after XOR gateway.

...

Output

Example

Yes

yes

No

no

The smartform form created for this example:

...