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, getUserprivate static final int __EDIT_WORKFLOW_ACTION_ID
protected AmetysObjectResolver _resolver
protected ContentWorkflowHelper _contentWorkflowHelper
public ChangeProgramStateFunction()
public void initialize() throws Exception
initialize in interface InitializableExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractContentWorkflowComponentServiceExceptionpublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute in interface com.opensymphony.workflow.FunctionProvidercom.opensymphony.workflow.WorkflowExceptionprotected WorkflowAwareContent getContent(Map transientVars) throws com.opensymphony.workflow.WorkflowException
getContent in class AbstractContentWorkflowComponenttransientVars - the parameters from the call.com.opensymphony.workflow.WorkflowException - if the content is not found.