1
2
3
4
5
6
7
8 package net.kwfgrid.gworkflowdl.protocol.calls;
9
10 import net.kwfgrid.gworkflowdl.protocol.structure.ProtocolOperationCandidate;
11 import org.xmlpull.v1.XmlSerializer;
12
13 import java.io.IOException;
14
15 /***
16 Modification that sets the resourceName of a operationCandidate
17 */
18 public class OperationCandidateSetSelected extends AbstractMethodCall {
19 protected ProtocolOperationCandidate _oc;
20 protected boolean _b;
21
22 public OperationCandidateSetSelected(ProtocolOperationCandidate oc, boolean b) {
23 super(oc.getRoot());
24 _oc = oc;
25 _b = b;
26 }
27
28 public void marshal(IMethodCallMarshaller encoder, XmlSerializer serializer) throws IOException {
29 encoder.marshalOperationCandidateSetSelected(serializer, _oc, _b);
30 }
31
32 public Object execute() {
33 _oc.__setSelected(_b);
34 setExecuted();
35 return null;
36 }
37 }