You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

Usages

  • Decision Tool Plugin is used in a route in a process flow to decide the next transition to flow to after the route.
  • Decision Tool Plugin will override the transition rule in the process flow if mapped to a route.
  • A useable Decision Tool Plugin must extend org.joget.workflow.model.DecisionPluginDefault abstract class.

Abstract Class

org.joget.workflow.model.DecisionPluginDefault

Method Detail

Abstract Methods
getDecision
public DecisionResult getDecision(String processDefId, String processId, String routeId, Map<String, String> variables);

Return the DecisionResult based on the current process state.

Parameters

    • processDefId - the process definition id
    • processId - the process instance id
    • routeId - the route id of this tool mapped 
    • variables - the workflow variables values

Return org.joget.workflow.model.DecisionResult

POJO Class

org.joget.workflow.model.DecisionResult

Method Detail

Getter/Setter Methods
getIsAndSplit
public Boolean getIsAndSplit();

The split type of next transitions is AND

setIsAndSplit
public void setIsAndSplit(Boolean isAndSplit);

Set the split type of next transitions to AND

getAuditData
public String getAuditData();

The data to be store to audit trail table

setAuditData
public void setAuditData(String auditData);

Set the data to be store to audit trail table

getVariables
public Map<String, String> getVariables();

The workflow variable and its value to be update

setVariable
public void setVariable(String name, String value);

Set the workflow variable & value to update

getTransitions
public Collection<String> getTransitions();

The transitions name/id to flow to after the route

addTransition
public void addTransition(String idOrName);

Add transition id/name to the list of transitions to flow to after the route.

Related Community Plugins

  • Bean Shell Decision Tool
    org.joget.apps.app.lib.BeanShellDecisionPlugin (wflow-core)
  • Simple Rules Decision Tool

    org.joget.apps.app.lib.RulesDecisionPlugin (wflow-core)

  • No labels