public class AlfrescoJavaScript extends JBPMSpringActionHandler
| Constructor and Description |
|---|
AlfrescoJavaScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.jbpm.graph.exe.ExecutionContext executionContext) |
static Object |
executeScript(org.jbpm.graph.exe.ExecutionContext context,
ServiceRegistry services,
String expression,
List<org.jbpm.context.def.VariableAccess> variableAccesses,
org.alfresco.service.cmr.repository.NodeRef companyHome)
Execute a script
|
protected void |
initialiseHandler(org.springframework.beans.factory.BeanFactory factory)
Initialise Action Handler
|
void |
setRunas(String runas) |
void |
setScript(org.dom4j.Element script) |
getWorkflowInstanceIdprotected void initialiseHandler(org.springframework.beans.factory.BeanFactory factory)
initialiseHandler in class JBPMSpringActionHandlerfactory - Spring bean factory for accessing Alfresco beanspublic void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
throws Exception
Exceptionpublic static Object executeScript(org.jbpm.graph.exe.ExecutionContext context, ServiceRegistry services, String expression, List<org.jbpm.context.def.VariableAccess> variableAccesses, org.alfresco.service.cmr.repository.NodeRef companyHome)
context - jBPM execution contextservices - Alfresco service registryexpression - script to executevariableAccesses - (optional) list of jBPM variables to map into script (all, if not supplied)companyHome - TODOpublic void setScript(org.dom4j.Element script)
public void setRunas(String runas)
Copyright © 2005–2014 Alfresco Software. All rights reserved.