public class OfbizWorkflow extends AbstractWorkflow
configuration, context, stateCache
BSF_COL, BSF_LANGUAGE, BSF_ROW, BSF_SCRIPT, BSF_SOURCE, BSH_SCRIPT, CLASS_NAME, EJB_LOCATION, JNDI_LOCATION
Constructor and Description |
---|
OfbizWorkflow(String caller) |
Modifier and Type | Method and Description |
---|---|
void |
changeEntryState(long id,
int newState)
Modify the state of the specified workflow instance.
|
void |
doAction(long id,
int actionId,
Map inputs)
Perform an action on the specified workflow instance.
|
long |
initialize(String workflowName,
int initialState,
Map inputs)
Initializes a workflow so that it can begin processing.
|
canInitialize, canInitialize, canInitialize, canModifyEntryState, completeEntry, createNewCurrentStep, executeFunction, executeTriggerFunction, getAvailableActions, getAvailableActions, getAvailableActionsForStep, getAvailableAutoActions, getAvailableAutoActionsForStep, getConfiguration, getCurrentStep, getCurrentSteps, getEntryState, getHistorySteps, getPersistence, getPersistenceProperties, getPropertySet, getResolver, getSecurityPermissions, getSecurityPermissions, getWorkflowDescriptor, getWorkflowName, getWorkflowNames, isActionAvailable, passesCondition, passesConditions, passesConditions, populateTransientMap, query, query, removeWorkflowDescriptor, saveWorkflowDescriptor, setConfiguration, setResolver, transitionWorkflow, verifyInputs
public OfbizWorkflow(String caller)
public void changeEntryState(long id, int newState) throws WorkflowException
Workflow
changeEntryState
in interface Workflow
changeEntryState
in class AbstractWorkflow
id
- The workflow instance id.newState
- the new state to change the workflow instance to.
If the new state is com.opensymphony.workflow.spi.WorkflowEntry.KILLED
or com.opensymphony.workflow.spi.WorkflowEntry.COMPLETED
then all current steps are moved to history steps. If the new state isWorkflowException
public void doAction(long id, int actionId, Map inputs) throws WorkflowException
Workflow
doAction
in interface Workflow
doAction
in class AbstractWorkflow
id
- The workflow instance id.actionId
- The action id to perform (action id's are listed in the workflow descriptor).inputs
- The inputs to the workflow instance.InvalidInputException
- if a validator is specified and an input is invalid.WorkflowException
public long initialize(String workflowName, int initialState, Map inputs) throws WorkflowException
Workflow
initialize
in interface Workflow
initialize
in class AbstractWorkflow
workflowName
- The workflow name to create and initialize an instance forinitialState
- The initial step to start the workflowinputs
- The inputs entered by the end-userInvalidRoleException
- if the user can't start this functionInvalidInputException
- if a validator is specified and an input is invalid.WorkflowException
Copyright © 2021 catworkx GmbH. All rights reserved.