nl.innovationinvestments.cheyenne.engine.support
Class JbpmUtil

java.lang.Object
  extended by nl.innovationinvestments.cheyenne.engine.support.JbpmUtil

public class JbpmUtil
extends java.lang.Object


Constructor Summary
JbpmUtil()
           
 
Method Summary
static java.util.List<org.jbpm.graph.exe.Token> collectAllActiveTokens(org.jbpm.graph.exe.ProcessInstance processInstance)
          All tokens not in a Join or Fork
static java.util.List<org.jbpm.graph.exe.Token> collectAllTokens(org.jbpm.graph.exe.ProcessInstance processInstance)
          Get all tokens in the ProcessInstance
static java.util.Map<org.jbpm.graph.exe.Token,java.lang.Object> collectAllValuesForVariableOnTokens(org.jbpm.graph.exe.ProcessInstance processInstance, java.lang.String varName, java.util.List<org.jbpm.graph.exe.Token> tokens)
          Get all values of a variable for all specified tokens
static org.jbpm.graph.def.Node peeloutNode(org.jbpm.graph.def.Node lNode)
           
static java.lang.String sanatizeName(java.lang.String name)
          Make sure the string that is going to be used as a name for nodes or transitions is not invalid
static void setVariable(java.lang.String name, java.lang.String value, org.jbpm.graph.exe.Token token)
          Helper for setting a local variable
static void writeXml(org.jbpm.graph.def.ProcessDefinition processDefinition, java.io.OutputStream outputStream)
          Write a process definition as xml to the output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmUtil

public JbpmUtil()
Method Detail

collectAllTokens

public static java.util.List<org.jbpm.graph.exe.Token> collectAllTokens(org.jbpm.graph.exe.ProcessInstance processInstance)
Get all tokens in the ProcessInstance

Parameters:
processInstance -
Returns:

collectAllActiveTokens

public static java.util.List<org.jbpm.graph.exe.Token> collectAllActiveTokens(org.jbpm.graph.exe.ProcessInstance processInstance)
All tokens not in a Join or Fork

Parameters:
processInstance -
Returns:

peeloutNode

public static org.jbpm.graph.def.Node peeloutNode(org.jbpm.graph.def.Node lNode)
Parameters:
lNode -
Returns:

collectAllValuesForVariableOnTokens

public static java.util.Map<org.jbpm.graph.exe.Token,java.lang.Object> collectAllValuesForVariableOnTokens(org.jbpm.graph.exe.ProcessInstance processInstance,
                                                                                                           java.lang.String varName,
                                                                                                           java.util.List<org.jbpm.graph.exe.Token> tokens)
Get all values of a variable for all specified tokens

Parameters:
processInstance -
Returns:

setVariable

public static void setVariable(java.lang.String name,
                               java.lang.String value,
                               org.jbpm.graph.exe.Token token)
Helper for setting a local variable

Parameters:
token -
id -
value -

sanatizeName

public static java.lang.String sanatizeName(java.lang.String name)
Make sure the string that is going to be used as a name for nodes or transitions is not invalid

Parameters:
name -
Returns:

writeXml

public static void writeXml(org.jbpm.graph.def.ProcessDefinition processDefinition,
                            java.io.OutputStream outputStream)
                     throws java.io.IOException
Write a process definition as xml to the output stream

Parameters:
processDefinition -
outputStream -
Throws:
java.io.IOException


Copyright © 2010 InnovationInvestments. All Rights Reserved.