1
2
3
4
5
6 package net.kwfgrid.gworkflowdl.protocol.calls;
7
8 import net.kwfgrid.gworkflowdl.protocol.*;
9 import net.kwfgrid.gworkflowdl.protocol.structure.*;
10
11 import java.io.IOException;
12
13 import org.xmlpull.v1.XmlSerializer;
14
15 /***
16 Modification that sets the expression of an edge.
17 */
18 public class EdgeSetExpression extends AbstractMethodCall {
19 protected String _expression;
20 protected ProtocolEdge _edge;
21
22 public EdgeSetExpression(ProtocolEdge edge, String expression) {
23 super(edge.getRoot());
24 _edge = edge;
25 _expression = expression;
26 }
27
28 public void marshal(IMethodCallMarshaller encoder, XmlSerializer serializer) throws IOException {
29 encoder.marshalEdgeSetExpression(serializer, _edge, _expression);
30 }
31
32 public Object execute() {
33 _edge.__setExpression(_expression);
34 setExecuted();
35 return null;
36 }
37 }