jBPM Designer - Backend 6.0.0.CR1

org.jbpm.designer.bpmn2.impl
Class Bpmn2JsonUnmarshaller

java.lang.Object
  extended by org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller

public class Bpmn2JsonUnmarshaller
extends Object


Field Summary
static String defaultBgColor
           
static String defaultBrColor
           
static String defaultFontColor
           
static String defaultRelationshipType
           
static String defaultSequenceflowColor
           
 
Constructor Summary
Bpmn2JsonUnmarshaller()
           
 
Method Summary
 void addSimulation(org.eclipse.bpmn2.Definitions def)
           
protected  void applyAdHocSubProcessProperties(org.eclipse.bpmn2.AdHocSubProcess ahsp, Map<String,String> properties)
           
protected  void applyAssociationProperties(org.eclipse.bpmn2.Association association, Map<String,String> properties)
           
protected  void applyBaseElementProperties(org.eclipse.bpmn2.BaseElement baseElement, Map<String,String> properties)
           
protected  void applyBusinessRuleTaskProperties(org.eclipse.bpmn2.BusinessRuleTask task, Map<String,String> properties)
           
protected  void applyCallActivityProperties(org.eclipse.bpmn2.CallActivity callActivity, Map<String,String> properties)
           
protected  void applyCatchEventProperties(org.eclipse.bpmn2.CatchEvent event, Map<String,String> properties)
           
protected  void applyDataObjectProperties(org.eclipse.bpmn2.DataObject da, Map<String,String> properties)
           
protected  void applyDataStoreProperties(org.eclipse.bpmn2.DataStore da, Map<String,String> properties)
           
protected  void applyDefinitionProperties(org.eclipse.bpmn2.Definitions def, Map<String,String> properties)
           
protected  void applyEndEventProperties(org.eclipse.bpmn2.EndEvent ee, Map<String,String> properties)
           
protected  void applyEventProperties(org.eclipse.bpmn2.Event event, Map<String,String> properties)
           
protected  void applyGatewayProperties(org.eclipse.bpmn2.Gateway gateway, Map<String,String> properties)
           
protected  void applyGlobalTaskProperties(org.eclipse.bpmn2.GlobalTask globalTask, Map<String,String> properties)
           
protected  void applyGroupProperties(org.eclipse.bpmn2.Group group, Map<String,String> properties)
           
protected  void applyLaneProperties(org.eclipse.bpmn2.Lane lane, Map<String,String> properties)
           
protected  void applyMessageProperties(org.eclipse.bpmn2.Message msg, Map<String,String> properties)
           
protected  void applyProcessProperties(org.eclipse.bpmn2.Process process, Map<String,String> properties)
           
protected  void applyProperties(org.eclipse.bpmn2.BaseElement baseElement, Map<String,String> properties)
           
 void applyReceiveTaskProperties(org.eclipse.bpmn2.ReceiveTask receiveTask, Map<String,String> properties)
           
protected  void applyScriptTaskProperties(org.eclipse.bpmn2.ScriptTask scriptTask, Map<String,String> properties)
           
 void applySendTaskProperties(org.eclipse.bpmn2.SendTask sendTask, Map<String,String> properties)
           
protected  void applySequenceFlowProperties(org.eclipse.bpmn2.SequenceFlow sequenceFlow, Map<String,String> properties)
           
 void applyServiceTaskProperties(org.eclipse.bpmn2.ServiceTask serviceTask, Map<String,String> properties)
           
protected  void applyStartEventProperties(org.eclipse.bpmn2.StartEvent se, Map<String,String> properties)
           
protected  void applySubProcessProperties(org.eclipse.bpmn2.SubProcess sp, Map<String,String> properties)
           
protected  void applyTaskProperties(org.eclipse.bpmn2.Task task, Map<String,String> properties)
           
protected  void applyTextAnnotationProperties(org.eclipse.bpmn2.TextAnnotation ta, Map<String,String> properties)
           
protected  void applyThrowEventProperties(org.eclipse.bpmn2.ThrowEvent event, Map<String,String> properties)
           
protected  void applyUserTaskProperties(org.eclipse.bpmn2.UserTask task, Map<String,String> properties)
           
protected  org.eclipse.bpmn2.BaseElement createBaseElement(String stencil, String taskType, boolean customElement)
           
 void revisitArtifacts(org.eclipse.bpmn2.Definitions def)
           
 void revisitAssociationsIoSpec(org.eclipse.bpmn2.Definitions def)
           
 void revisitCatchEvents(org.eclipse.bpmn2.Definitions def)
          Updates event definitions for all catch events.
 void revisitDataObjects(org.eclipse.bpmn2.Definitions def)
           
 void revisitGroups(org.eclipse.bpmn2.Definitions def)
           
 void revisitLanes(org.eclipse.bpmn2.Definitions def)
           
 void revisitMultiInstanceTasks(org.eclipse.bpmn2.Definitions def)
           
 void revisitSendReceiveTasks(org.eclipse.bpmn2.Definitions def)
           
 void revisitSubProcessItemDefs(org.eclipse.bpmn2.Definitions def)
           
 void revisitTaskAssociations(org.eclipse.bpmn2.Definitions def)
           
 void revisitThrowEvents(org.eclipse.bpmn2.Definitions def)
          Updates event definitions for all throwing events.
 void revisitWsdlImports(org.eclipse.bpmn2.Definitions def)
           
 void setCatchEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.Signal> toAddSignals, Set<org.eclipse.bpmn2.Error> toAddErrors, Set<org.eclipse.bpmn2.Escalation> toAddEscalations, Set<org.eclipse.bpmn2.Message> toAddMessages, Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
           
 void setItemDefinitionsForActivitiesIoSpec(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
           
 void setSendReceiveTasksInfo(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.Message> toAddMessages, List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
           
 void setThrowEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.RootElement> rootElements, List<org.eclipse.bpmn2.Signal> toAddSignals, Set<org.eclipse.bpmn2.Error> toAddErrors, Set<org.eclipse.bpmn2.Escalation> toAddEscalations, Set<org.eclipse.bpmn2.Message> toAddMessages, Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
           
 org.eclipse.bpmn2.util.Bpmn2Resource unmarshall(File file, String preProcessingData)
           
 org.eclipse.bpmn2.util.Bpmn2Resource unmarshall(String json, String preProcessingData)
           
 void updateIDs(org.eclipse.bpmn2.Definitions def)
           
protected  String wrapInCDATABlock(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultBgColor

public static final String defaultBgColor
See Also:
Constant Field Values

defaultBrColor

public static final String defaultBrColor
See Also:
Constant Field Values

defaultFontColor

public static final String defaultFontColor
See Also:
Constant Field Values

defaultSequenceflowColor

public static final String defaultSequenceflowColor
See Also:
Constant Field Values

defaultRelationshipType

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

Bpmn2JsonUnmarshaller

public Bpmn2JsonUnmarshaller()
Method Detail

unmarshall

public org.eclipse.bpmn2.util.Bpmn2Resource unmarshall(String json,
                                                       String preProcessingData)
                                                throws org.codehaus.jackson.JsonParseException,
                                                       IOException
Throws:
org.codehaus.jackson.JsonParseException
IOException

unmarshall

public org.eclipse.bpmn2.util.Bpmn2Resource unmarshall(File file,
                                                       String preProcessingData)
                                                throws org.codehaus.jackson.JsonParseException,
                                                       IOException
Throws:
org.codehaus.jackson.JsonParseException
IOException

revisitMultiInstanceTasks

public void revisitMultiInstanceTasks(org.eclipse.bpmn2.Definitions def)

revisitWsdlImports

public void revisitWsdlImports(org.eclipse.bpmn2.Definitions def)

revisitSubProcessItemDefs

public void revisitSubProcessItemDefs(org.eclipse.bpmn2.Definitions def)

updateIDs

public void updateIDs(org.eclipse.bpmn2.Definitions def)

addSimulation

public void addSimulation(org.eclipse.bpmn2.Definitions def)

revisitDataObjects

public void revisitDataObjects(org.eclipse.bpmn2.Definitions def)

revisitTaskAssociations

public void revisitTaskAssociations(org.eclipse.bpmn2.Definitions def)

revisitSendReceiveTasks

public void revisitSendReceiveTasks(org.eclipse.bpmn2.Definitions def)

setSendReceiveTasksInfo

public void setSendReceiveTasksInfo(org.eclipse.bpmn2.FlowElementsContainer container,
                                    org.eclipse.bpmn2.Definitions def,
                                    List<org.eclipse.bpmn2.Message> toAddMessages,
                                    List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)

revisitLanes

public void revisitLanes(org.eclipse.bpmn2.Definitions def)

revisitArtifacts

public void revisitArtifacts(org.eclipse.bpmn2.Definitions def)

revisitGroups

public void revisitGroups(org.eclipse.bpmn2.Definitions def)

revisitThrowEvents

public void revisitThrowEvents(org.eclipse.bpmn2.Definitions def)
Updates event definitions for all throwing events.

Parameters:
def - Definitions

setThrowEventsInfo

public void setThrowEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container,
                               org.eclipse.bpmn2.Definitions def,
                               List<org.eclipse.bpmn2.RootElement> rootElements,
                               List<org.eclipse.bpmn2.Signal> toAddSignals,
                               Set<org.eclipse.bpmn2.Error> toAddErrors,
                               Set<org.eclipse.bpmn2.Escalation> toAddEscalations,
                               Set<org.eclipse.bpmn2.Message> toAddMessages,
                               Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)

revisitAssociationsIoSpec

public void revisitAssociationsIoSpec(org.eclipse.bpmn2.Definitions def)

setItemDefinitionsForActivitiesIoSpec

public void setItemDefinitionsForActivitiesIoSpec(org.eclipse.bpmn2.FlowElementsContainer container,
                                                  org.eclipse.bpmn2.Definitions def,
                                                  List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)

revisitCatchEvents

public void revisitCatchEvents(org.eclipse.bpmn2.Definitions def)
Updates event definitions for all catch events.

Parameters:
def - Definitions

setCatchEventsInfo

public void setCatchEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container,
                               org.eclipse.bpmn2.Definitions def,
                               List<org.eclipse.bpmn2.Signal> toAddSignals,
                               Set<org.eclipse.bpmn2.Error> toAddErrors,
                               Set<org.eclipse.bpmn2.Escalation> toAddEscalations,
                               Set<org.eclipse.bpmn2.Message> toAddMessages,
                               Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)

applyProperties

protected void applyProperties(org.eclipse.bpmn2.BaseElement baseElement,
                               Map<String,String> properties)

applySubProcessProperties

protected void applySubProcessProperties(org.eclipse.bpmn2.SubProcess sp,
                                         Map<String,String> properties)

applyAdHocSubProcessProperties

protected void applyAdHocSubProcessProperties(org.eclipse.bpmn2.AdHocSubProcess ahsp,
                                              Map<String,String> properties)

applyEndEventProperties

protected void applyEndEventProperties(org.eclipse.bpmn2.EndEvent ee,
                                       Map<String,String> properties)

applyAssociationProperties

protected void applyAssociationProperties(org.eclipse.bpmn2.Association association,
                                          Map<String,String> properties)

applyStartEventProperties

protected void applyStartEventProperties(org.eclipse.bpmn2.StartEvent se,
                                         Map<String,String> properties)

applyMessageProperties

protected void applyMessageProperties(org.eclipse.bpmn2.Message msg,
                                      Map<String,String> properties)

applyDataStoreProperties

protected void applyDataStoreProperties(org.eclipse.bpmn2.DataStore da,
                                        Map<String,String> properties)

applyDataObjectProperties

protected void applyDataObjectProperties(org.eclipse.bpmn2.DataObject da,
                                         Map<String,String> properties)

applyTextAnnotationProperties

protected void applyTextAnnotationProperties(org.eclipse.bpmn2.TextAnnotation ta,
                                             Map<String,String> properties)

applyGroupProperties

protected void applyGroupProperties(org.eclipse.bpmn2.Group group,
                                    Map<String,String> properties)

applyEventProperties

protected void applyEventProperties(org.eclipse.bpmn2.Event event,
                                    Map<String,String> properties)

applyCatchEventProperties

protected void applyCatchEventProperties(org.eclipse.bpmn2.CatchEvent event,
                                         Map<String,String> properties)

applyThrowEventProperties

protected void applyThrowEventProperties(org.eclipse.bpmn2.ThrowEvent event,
                                         Map<String,String> properties)

applyGlobalTaskProperties

protected void applyGlobalTaskProperties(org.eclipse.bpmn2.GlobalTask globalTask,
                                         Map<String,String> properties)

applyBaseElementProperties

protected void applyBaseElementProperties(org.eclipse.bpmn2.BaseElement baseElement,
                                          Map<String,String> properties)

applyDefinitionProperties

protected void applyDefinitionProperties(org.eclipse.bpmn2.Definitions def,
                                         Map<String,String> properties)

applyProcessProperties

protected void applyProcessProperties(org.eclipse.bpmn2.Process process,
                                      Map<String,String> properties)

applyBusinessRuleTaskProperties

protected void applyBusinessRuleTaskProperties(org.eclipse.bpmn2.BusinessRuleTask task,
                                               Map<String,String> properties)

applyScriptTaskProperties

protected void applyScriptTaskProperties(org.eclipse.bpmn2.ScriptTask scriptTask,
                                         Map<String,String> properties)

applyServiceTaskProperties

public void applyServiceTaskProperties(org.eclipse.bpmn2.ServiceTask serviceTask,
                                       Map<String,String> properties)

applyReceiveTaskProperties

public void applyReceiveTaskProperties(org.eclipse.bpmn2.ReceiveTask receiveTask,
                                       Map<String,String> properties)

applySendTaskProperties

public void applySendTaskProperties(org.eclipse.bpmn2.SendTask sendTask,
                                    Map<String,String> properties)

applyLaneProperties

protected void applyLaneProperties(org.eclipse.bpmn2.Lane lane,
                                   Map<String,String> properties)

applyCallActivityProperties

protected void applyCallActivityProperties(org.eclipse.bpmn2.CallActivity callActivity,
                                           Map<String,String> properties)

applyTaskProperties

protected void applyTaskProperties(org.eclipse.bpmn2.Task task,
                                   Map<String,String> properties)

applyUserTaskProperties

protected void applyUserTaskProperties(org.eclipse.bpmn2.UserTask task,
                                       Map<String,String> properties)

applyGatewayProperties

protected void applyGatewayProperties(org.eclipse.bpmn2.Gateway gateway,
                                      Map<String,String> properties)

applySequenceFlowProperties

protected void applySequenceFlowProperties(org.eclipse.bpmn2.SequenceFlow sequenceFlow,
                                           Map<String,String> properties)

createBaseElement

protected org.eclipse.bpmn2.BaseElement createBaseElement(String stencil,
                                                          String taskType,
                                                          boolean customElement)

wrapInCDATABlock

protected String wrapInCDATABlock(String value)

jBPM Designer - Backend 6.0.0.CR1

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