1
2
3
4
5
6 package net.kwfgrid.gworkflowdl.protocol.calls;
7
8 import net.kwfgrid.gworkflowdl.protocol.structure.*;
9
10 import java.io.IOException;
11
12 import org.xmlpull.v1.XmlSerializer;
13
14 /***
15 Modification that sets a new Workflow description.
16 */
17 public class WorkflowSetDescription extends AbstractMethodCall {
18 protected String _description;
19 protected ProtocolWorkflow _workflow;
20
21 public WorkflowSetDescription(ProtocolWorkflow workflow, String description) {
22 super(workflow.getRoot());
23 _description = description;
24 _workflow = workflow;
25 }
26
27 public void marshal(IMethodCallMarshaller encoder, XmlSerializer serializer) throws IOException {
28 encoder.marshalWorkflowSetDescription(serializer, _workflow, _description);
29 }
30
31 public Object execute() {
32 _workflow.__setDescription(_description);
33 setExecuted();
34 return null;
35 }
36 }