org.openbp.cockpit.modeler.util
Class ProcessElementFactory

java.lang.Object
  extended by org.openbp.cockpit.modeler.util.ProcessElementFactory

public class ProcessElementFactory
extends java.lang.Object

Process element factory. This class is a singleton.

Author:
Heiko Erhardt

Field Summary
static java.lang.String SYSTEM_TYPE_INTEGER
           
static java.lang.String SYSTEM_TYPE_OBJECT
           
static java.lang.String SYSTEM_TYPE_STRING
           
static java.lang.String SYSTEM_TYPE_WORKFLOWTASK
           
 
Method Summary
 NodeSocket createEntrySocket(java.lang.String name, boolean isDefault)
          Creates a new node entry socket.
 NodeSocket createExitSocket(java.lang.String name, boolean isDefault)
          Creates a new node entry socket.
 ActivityNodeImpl createStandardActivityNode()
          Creates a standard activity node.
 DecisionNodeImpl createStandardDecisionNode()
          Creates a standard decision node.
 FinalNodeImpl createStandardFinalNode()
          Creates a standard final node.
 ForkNodeImpl createStandardForkNode()
          Creates a standard fork node.
 InitialNodeImpl createStandardInitialNode()
          Creates a standard initial node.
 JoinNodeImpl createStandardJoinNode()
          Creates a standard join node.
 MergeNodeImpl createStandardMergeNode()
          Creates a standard merge node.
 PlaceholderNodeImpl createStandardPlaceholderNode()
          Creates a standard placeholder node.
 VisualNodeImpl createStandardVisualNode()
          Creates a standard visual node.
 WaitStateNodeImpl createStandardWaitStateNode()
          Creates a standard wait state node.
 WorkflowEndNodeImpl createStandardWorkflowEndNode()
          Creates a standard workflow end node.
 WorkflowNodeImpl createStandardWorkflowNode()
          Creates a standard workflow node.
 void ensureWorkflowTaskParameter(NodeSocket socket)
          Ensures that the given socket contains a workflow task parameter and adds one if not present.
static ProcessElementFactory getInstance()
          Gets the singleton instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_TYPE_OBJECT

public static final java.lang.String SYSTEM_TYPE_OBJECT
See Also:
Constant Field Values

SYSTEM_TYPE_STRING

public static final java.lang.String SYSTEM_TYPE_STRING
See Also:
Constant Field Values

SYSTEM_TYPE_INTEGER

public static final java.lang.String SYSTEM_TYPE_INTEGER
See Also:
Constant Field Values

SYSTEM_TYPE_WORKFLOWTASK

public static final java.lang.String SYSTEM_TYPE_WORKFLOWTASK
See Also:
Constant Field Values
Method Detail

getInstance

public static ProcessElementFactory getInstance()
Gets the singleton instance of this class.


createStandardInitialNode

public InitialNodeImpl createStandardInitialNode()
Creates a standard initial node.

Returns:
The new node

createStandardFinalNode

public FinalNodeImpl createStandardFinalNode()
Creates a standard final node.

Returns:
The new node

createStandardDecisionNode

public DecisionNodeImpl createStandardDecisionNode()
Creates a standard decision node.

Returns:
The new node

createStandardForkNode

public ForkNodeImpl createStandardForkNode()
Creates a standard fork node.

Returns:
The new node

createStandardJoinNode

public JoinNodeImpl createStandardJoinNode()
Creates a standard join node.

Returns:
The new node

createStandardWaitStateNode

public WaitStateNodeImpl createStandardWaitStateNode()
Creates a standard wait state node.

Returns:
The new node

createStandardPlaceholderNode

public PlaceholderNodeImpl createStandardPlaceholderNode()
Creates a standard placeholder node.

Returns:
The new node

createStandardActivityNode

public ActivityNodeImpl createStandardActivityNode()
Creates a standard activity node.

Returns:
The new node

createStandardVisualNode

public VisualNodeImpl createStandardVisualNode()
Creates a standard visual node.

Returns:
The new node

createStandardWorkflowNode

public WorkflowNodeImpl createStandardWorkflowNode()
Creates a standard workflow node.

Returns:
The new node

createStandardWorkflowEndNode

public WorkflowEndNodeImpl createStandardWorkflowEndNode()
Creates a standard workflow end node.

Returns:
The new node

ensureWorkflowTaskParameter

public void ensureWorkflowTaskParameter(NodeSocket socket)
Ensures that the given socket contains a workflow task parameter and adds one if not present.

Parameters:
socket - Socket to check

createStandardMergeNode

public MergeNodeImpl createStandardMergeNode()
Creates a standard merge node.

Returns:
The new node

createEntrySocket

public NodeSocket createEntrySocket(java.lang.String name,
                                    boolean isDefault)
Creates a new node entry socket.

Parameters:
name - Name of the socket
isDefault - true for a default socket
Returns:
The new socket

createExitSocket

public NodeSocket createExitSocket(java.lang.String name,
                                   boolean isDefault)
Creates a new node entry socket.

Parameters:
name - Name of the socket
isDefault - true for a default socket
Returns:
The new socket


Copyright © 2011. All Rights Reserved.