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

Compare with Current View Page History

« Previous Version 3 Next »

Usages

  • Decision Tool Plugin is used for map to a route in a process flow to decide the next transition to flow to after the route.
  • Custom Builder Plugin let app designer build extra definition which auto handles the load/store/merge/export/import by the platform.
  • 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

DecisionResult

org.joget.workflow.model.DecisionResult

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