org.jbpm.graph.action
Class Script

java.lang.Object
  extended by org.jbpm.graph.def.Action
      extended by org.jbpm.graph.action.Script
All Implemented Interfaces:
Serializable, ActionHandler, Parsable

public class Script
extends Action

See Also:
Serialized Form

Field Summary
protected  String expression
           
protected  Set variableAccesses
           
 
Fields inherited from class org.jbpm.graph.def.Action
actionDelegation, actionExpression, event, isAsync, isAsyncExclusive, isPropagationAllowed, name, processDefinition, referencedAction
 
Constructor Summary
Script()
           
 
Method Summary
 void addVariableAccess(VariableAccess variableAccess)
           
 Map createInputMap(ExecutionContext executionContext)
           
 Map eval(ExecutionContext executionContext)
           
 Map eval(Map inputMap, Set outputNames)
           
 Map eval(Token token)
           
 void execute(ExecutionContext executionContext)
           
 String getExpression()
           
 Set getVariableAccesses()
           
 void read(org.dom4j.Element scriptElement, JpdlXmlReader jpdlReader)
           
 void setExpression(String expression)
           
 void setVariableAccesses(Set variableAccesses)
           
 String toString()
           
 
Methods inherited from class org.jbpm.graph.def.Action
acceptsPropagatedEvents, equals, getActionDelegation, getActionExpression, getEvent, getId, getName, getProcessDefinition, getReferencedAction, hashCode, isAsync, isAsyncExclusive, isPropagationAllowed, setActionDelegation, setActionExpression, setAsync, setAsyncExclusive, setEvent, setName, setProcessDefinition, setPropagationAllowed, setReferencedAction, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

expression

protected String expression

variableAccesses

protected Set variableAccesses
Constructor Detail

Script

public Script()
Method Detail

read

public void read(org.dom4j.Element scriptElement,
                 JpdlXmlReader jpdlReader)
Specified by:
read in interface Parsable
Overrides:
read in class Action

execute

public void execute(ExecutionContext executionContext)
             throws Exception
Specified by:
execute in interface ActionHandler
Overrides:
execute in class Action
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Action

eval

public Map eval(Token token)

eval

public Map eval(ExecutionContext executionContext)

createInputMap

public Map createInputMap(ExecutionContext executionContext)

eval

public Map eval(Map inputMap,
                Set outputNames)

addVariableAccess

public void addVariableAccess(VariableAccess variableAccess)

getExpression

public String getExpression()

setExpression

public void setExpression(String expression)

getVariableAccesses

public Set getVariableAccesses()

setVariableAccesses

public void setVariableAccesses(Set variableAccesses)


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.