Author: koen.aers(a)jboss.com
Date: 2008-10-13 14:26:27 -0400 (Mon, 13 Oct 2008)
New Revision: 10809
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/EndState.java
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Process.java
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/StartState.java
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/State.java
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SuperState.java
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Transition.java
Log:
jpdl initial serialization experiment
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/EndState.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/EndState.java 2008-10-13
18:26:06 UTC (rev 10808)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/EndState.java 2008-10-13
18:26:27 UTC (rev 10809)
@@ -3,5 +3,9 @@
import org.jboss.tools.flow.common.model.DefaultNode;
public class EndState extends DefaultNode {
+
+ public EndState() {
+ setMetaData("xml", "end-state");
+ }
}
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Process.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Process.java 2008-10-13
18:26:06 UTC (rev 10808)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Process.java 2008-10-13
18:26:27 UTC (rev 10809)
@@ -7,6 +7,11 @@
public class Process extends DefaultFlow {
+ public Process() {
+ super();
+ setMetaData("xml", "process-definition");
+ }
+
public StartState getStartState() {
for (Iterator<Node> iterator = getNodes().iterator(); iterator.hasNext(); ) {
Node node = iterator.next();
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/StartState.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/StartState.java 2008-10-13
18:26:06 UTC (rev 10808)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/StartState.java 2008-10-13
18:26:27 UTC (rev 10809)
@@ -3,5 +3,9 @@
import org.jboss.tools.flow.common.model.DefaultNode;
public class StartState extends DefaultNode {
+
+ public StartState() {
+ setMetaData("xml", "start-state");
+ }
}
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/State.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/State.java 2008-10-13
18:26:06 UTC (rev 10808)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/State.java 2008-10-13
18:26:27 UTC (rev 10809)
@@ -3,5 +3,8 @@
import org.jboss.tools.flow.common.model.DefaultNode;
public class State extends DefaultNode {
-
+
+ public State() {
+ setMetaData("xml", "state");
+ }
}
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SuperState.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SuperState.java 2008-10-13
18:26:06 UTC (rev 10808)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SuperState.java 2008-10-13
18:26:27 UTC (rev 10809)
@@ -4,4 +4,7 @@
public class SuperState extends DefaultContainer {
+ public SuperState() {
+ setMetaData("xml", "super-state");
+ }
}
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Transition.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Transition.java 2008-10-13
18:26:06 UTC (rev 10808)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/Transition.java 2008-10-13
18:26:27 UTC (rev 10809)
@@ -5,8 +5,13 @@
public class Transition extends DefaultConnection {
+ public Transition() {
+ this(null, null);
+ }
+
public Transition(Node from, Node to) {
super(from, to);
+ setMetaData("xml", "transition");
}
}