org.drools.eclipse.flow.ruleflow.core
Class WorkItemWrapper

java.lang.Object
  extended by org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper
      extended by org.drools.eclipse.flow.ruleflow.core.AbstractNodeWrapper
          extended by org.drools.eclipse.flow.ruleflow.core.ExtendedNodeWrapper
              extended by org.drools.eclipse.flow.ruleflow.core.StateBasedNodeWrapper
                  extended by org.drools.eclipse.flow.ruleflow.core.WorkItemWrapper
All Implemented Interfaces:
Serializable, ElementWrapper, NodeWrapper, org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
HumanTaskNodeWrapper

public class WorkItemWrapper
extends StateBasedNodeWrapper

Wrapper for a work item node.

See Also:
Serialized Form

Field Summary
static String PARAMETER_MAPPING
           
static String RESULT_MAPPING
           
static String WAIT_FOR_COMPLETION
           
 
Fields inherited from class org.drools.eclipse.flow.ruleflow.core.StateBasedNodeWrapper
descriptors, TIMERS
 
Fields inherited from class org.drools.eclipse.flow.ruleflow.core.ExtendedNodeWrapper
ON_ENTRY_ACTIONS, ON_EXIT_ACTIONS
 
Fields inherited from class org.drools.eclipse.flow.ruleflow.core.AbstractNodeWrapper
DESCRIPTORS, METADATA
 
Fields inherited from class org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper
color, COLOR, ID, NAME
 
Fields inherited from interface org.drools.eclipse.flow.common.editor.core.ElementWrapper
CHANGE_CONSTRAINT, CHANGE_ID, CHANGE_INCOMING_CONNECTIONS, CHANGE_NAME, CHANGE_OUTGOING_CONNECTIONS
 
Constructor Summary
WorkItemWrapper()
           
 
Method Summary
 boolean acceptsIncomingConnection(ElementConnection connection, ElementWrapper source)
           
 boolean acceptsOutgoingConnection(ElementConnection connection, ElementWrapper target)
           
 Object getPropertyValue(Object id)
           
 org.drools.process.core.WorkDefinition getWorkDefinition()
           
 org.jbpm.workflow.core.node.WorkItemNode getWorkItemNode()
           
protected  void initDescriptors()
           
 void resetPropertyValue(Object id)
           
 void setNode(org.jbpm.workflow.core.Node node)
           
 void setPropertyValue(Object id, Object value)
           
 void setWorkDefinition(org.drools.process.core.WorkDefinition workDefinition)
           
 
Methods inherited from class org.drools.eclipse.flow.ruleflow.core.StateBasedNodeWrapper
getPropertyDescriptors, getStateBasedNode
 
Methods inherited from class org.drools.eclipse.flow.ruleflow.core.ExtendedNodeWrapper
getExtendedNode, getOnEntryPropertyDescriptor, getOnExitPropertyDescriptor
 
Methods inherited from class org.drools.eclipse.flow.ruleflow.core.AbstractNodeWrapper
getId, getName, getNode, internalGetColor, internalGetConstraint, internalSetColor, internalSetConstraint, internalSetName, isFullProperties
 
Methods inherited from class org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper
addIncomingConnection, addListener, addOutgoingConnection, getColor, getConstraint, getEditableValue, getElement, getIncomingConnections, getOutgoingConnections, getParent, integerToRGB, internalAddIncomingConnection, internalAddOutgoingConnection, internalRemoveIncomingConnection, internalRemoveOutgoingConnection, isPropertySet, localAddIncomingConnection, localAddOutgoingConnection, notifyListeners, removeIncomingConnection, removeListener, removeOutgoingConnection, RGBToInteger, setColor, setConstraint, setElement, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.eclipse.flow.common.editor.core.ElementWrapper
addIncomingConnection, addListener, addOutgoingConnection, getConstraint, getIncomingConnections, getOutgoingConnections, getParent, localAddIncomingConnection, localAddOutgoingConnection, removeIncomingConnection, removeListener, removeOutgoingConnection, setConstraint, setName, setParent
 

Field Detail

WAIT_FOR_COMPLETION

public static final String WAIT_FOR_COMPLETION
See Also:
Constant Field Values

RESULT_MAPPING

public static final String RESULT_MAPPING
See Also:
Constant Field Values

PARAMETER_MAPPING

public static final String PARAMETER_MAPPING
See Also:
Constant Field Values
Constructor Detail

WorkItemWrapper

public WorkItemWrapper()
Method Detail

getWorkItemNode

public org.jbpm.workflow.core.node.WorkItemNode getWorkItemNode()

setNode

public void setNode(org.jbpm.workflow.core.Node node)
Specified by:
setNode in interface NodeWrapper
Overrides:
setNode in class AbstractNodeWrapper

setWorkDefinition

public void setWorkDefinition(org.drools.process.core.WorkDefinition workDefinition)

getWorkDefinition

public org.drools.process.core.WorkDefinition getWorkDefinition()

initDescriptors

protected void initDescriptors()
Overrides:
initDescriptors in class StateBasedNodeWrapper

acceptsIncomingConnection

public boolean acceptsIncomingConnection(ElementConnection connection,
                                         ElementWrapper source)
Specified by:
acceptsIncomingConnection in interface ElementWrapper
Overrides:
acceptsIncomingConnection in class AbstractNodeWrapper

acceptsOutgoingConnection

public boolean acceptsOutgoingConnection(ElementConnection connection,
                                         ElementWrapper target)
Specified by:
acceptsOutgoingConnection in interface ElementWrapper
Overrides:
acceptsOutgoingConnection in class AbstractNodeWrapper

getPropertyValue

public Object getPropertyValue(Object id)
Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
getPropertyValue in class StateBasedNodeWrapper

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
resetPropertyValue in class StateBasedNodeWrapper

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
setPropertyValue in class StateBasedNodeWrapper


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.