public class ChangeProgramStateFunction extends AbstractContentWorkflowComponent implements com.opensymphony.workflow.FunctionProvider, Initializable
Program
content.Modifier and Type | Field and Description |
---|---|
private static int |
__EDIT_WORKFLOW_ACTION_ID |
protected ContentWorkflowHelper |
_contentWorkflowHelper
Content workflow helper
|
protected AmetysObjectResolver |
_resolver
Ametys object resolver.
|
_contentHelper, CONTENT_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
ChangeProgramStateFunction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
protected WorkflowAwareContent |
getContent(Map transientVars)
Retrieve the content associated with the workflow.
|
void |
initialize() |
void |
service(ServiceManager manager) |
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
private static final int __EDIT_WORKFLOW_ACTION_ID
protected AmetysObjectResolver _resolver
protected ContentWorkflowHelper _contentWorkflowHelper
public ChangeProgramStateFunction()
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractContentWorkflowComponent
ServiceException
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute
in interface com.opensymphony.workflow.FunctionProvider
com.opensymphony.workflow.WorkflowException
protected WorkflowAwareContent getContent(Map transientVars) throws com.opensymphony.workflow.WorkflowException
getContent
in class AbstractContentWorkflowComponent
transientVars
- the parameters from the call.com.opensymphony.workflow.WorkflowException
- if the content is not found.