View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gwui.taskframework;
7   
8   import java.util.*;
9   
10  public interface UserTaskProducer {
11      /***
12         Set the workflow.
13         @return The new tasks which result from the workflow structure modification, if any. (May return <code>null</code>.)
14      */
15      UserTask[] newDocument(net.kwfgrid.gworkflowdl.protocol.structure.IRootObject document);
16      /***
17         Notify the producer that an object has been added to the workflow structure.
18         @return The new tasks which result from the workflow structure modification, if any. (May return <code>null</code>.)
19      */
20      UserTask[] objectsAdded(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent, String namespace, String name, List objects);
21      /***
22         Notify the producer that an object has been removed from the workflow structure.
23         @return The new tasks which result from the workflow structure modification, if any. (May return <code>null</code>.)
24      */
25      UserTask[] objectsRemoved(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent, String namespace, String name, List objects);
26      /***
27         Notify the producer that an object of the workflow structure has been updated.
28         @return The new tasks which result from the workflow structure modification, if any. (May return <code>null</code>.)
29      */
30      UserTask[] propertyChanged(net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject parent, String namespace, String name, Object newvalue);
31  }
32