public class AlfrescoJavaScript extends JBPMSpringActionHandler
| Constructor and Description |
|---|
AlfrescoJavaScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.jbpm.graph.exe.ExecutionContext executionContext) |
static java.lang.Object |
executeScript(org.jbpm.graph.exe.ExecutionContext context,
ServiceRegistry services,
java.lang.String expression,
java.util.List 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(java.lang.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 java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object executeScript(org.jbpm.graph.exe.ExecutionContext context,
ServiceRegistry services,
java.lang.String expression,
java.util.List 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(java.lang.String runas)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.