public class PilotageStatusCheckCondition extends AbstractWorkflowComponent implements com.opensymphony.workflow.Condition, Initializable, Disposable
Modifier and Type | Field and Description |
---|---|
protected PilotageStatusHelper |
_pilotageStatusHelper
The pilotage status helper
|
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
PilotageStatusCheckCondition() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected WorkflowAwareContent |
getContent(Map transientVars)
Retrieve the content associated with the workflow.
|
void |
initialize() |
boolean |
passesCondition(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
protected boolean |
passesPilotageStatusCondition(Map transientVars)
Return true if the pilotage status passes conditions
|
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
protected PilotageStatusHelper _pilotageStatusHelper
public PilotageStatusCheckCondition()
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public boolean passesCondition(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
passesCondition
in interface com.opensymphony.workflow.Condition
com.opensymphony.workflow.WorkflowException
protected boolean passesPilotageStatusCondition(Map transientVars) throws com.opensymphony.workflow.WorkflowException
transientVars
- the transient varscom.opensymphony.workflow.WorkflowException
- if an error occurredprotected WorkflowAwareContent getContent(Map transientVars) throws com.opensymphony.workflow.WorkflowException
transientVars
- the parameters from the call.com.opensymphony.workflow.WorkflowException
- if the content is not found.public void dispose()
dispose
in interface Disposable