public class WorkflowDefinitionType extends Object implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy
Policy.ArgQNAMEARG_0, ARG_1, ARG_2, QNAMEQNAME| Constructor and Description |
|---|
WorkflowDefinitionType() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDeleteNode(NodeRef nodeRef)
Called before a node is deleted.
|
void |
init()
The initialise method
|
void |
onContentUpdate(NodeRef nodeRef,
boolean newContent)
On content update behaviour implementation
|
void |
onUpdateProperties(NodeRef nodeRef,
Map<QName,Serializable> before,
Map<QName,Serializable> after)
On update properties behaviour implementation
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setWorkflowDeployer(WorkflowDeployer workflowDeployer)
Set the workflow deployer / undeployer
|
public void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - the policy componentpublic void setWorkflowDeployer(WorkflowDeployer workflowDeployer)
workflowDeployer - the workflow deployer / undeployerpublic void init()
public void onContentUpdate(NodeRef nodeRef, boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node reference whose content has been updatedpublic void onUpdateProperties(NodeRef nodeRef, Map<QName,Serializable> before, Map<QName,Serializable> after)
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - the node referencebefore - the values of the properties before updateafter - the values of the properties after the updatepublic void beforeDeleteNode(NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicybeforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicynodeRef - the node referenceCopyright © 2005–2021 Alfresco Software. All rights reserved.