GNDMS 0.6.0
RESTful verison of GNDMS
|
Interface for the taskflow service. More...
Public Member Functions | |
ResponseEntity< Void > | deleteTaskflow (String type, String id, String dn, String wid) |
Deletes a task flow. | |
ResponseEntity< Order > | getOrder (String type, String id, String dn, String wid) |
Delivers the order of the task flow. | |
ResponseEntity< Void > | setOrder (String type, String id, Order orq, String dn, String wid) |
Changes the order of a task flow. | |
ResponseEntity< List < Specifier< Quote > > > | getQuotes (String type, String id, String dn, String wid) |
Delivers all quotes for the order. | |
ResponseEntity< Integer > | setQuote (String type, String id, Quote cont, String dn, String wid) |
Allows the client to provide a preferred quote. | |
ResponseEntity< Quote > | getQuote (String type, String id, int idx, String dn, String wid) |
Delivers a single quote. | |
ResponseEntity< Void > | deleteQuotes (String type, String id, int idx, String dn, String wid) |
Removes a quote form the list, ^. | |
ResponseEntity< Specifier < Facets > > | getTask (String type, String id, String dn, String wid) |
Requests the task of the taskflow. | |
ResponseEntity< Specifier < Facets > > | createTask (String type, String id, Integer quoteId, String dn, String wid) |
Creates the task for a taskflow. | |
ResponseEntity< TaskFlowStatus > | getStatus (String type, String id, String dn, String wid) |
Delivers the status of the taskflow execution. | |
ResponseEntity< Specifier < TaskResult > > | getResult (String type, String id, String dn, String wid) |
Delivers the result of the taskflow execution. | |
ResponseEntity< Specifier < TaskFailure > > | getErrors (String type, String id, String dn, String wid) |
Delivers possible errors from the task(flow) execution. | |
Package Functions | |
ResponseEntity< Facets > | getFacets (String type, String id, String dn) |
Delivers all facets of a task flow. |
Interface for the taskflow service.
The taskflow service acts as interface to instantiated taskflow resources. The instantiation or creation happens through the GORFX service itself.
Regarding the return values if not documented differently the HttpStatus is 200 (OK) if the call was successful, 404 if the resource wasn't found or 403 (Forbidden) if the user hasn't the necessary credentials to access the resource.
ResponseEntity<Specifier<Facets> > de.zib.gndms.common.GORFX.service.TaskFlowService.createTask | ( | String | type, |
String | id, | ||
Integer | quoteId, | ||
String | dn, | ||
String | wid | ||
) |
Creates the task for a taskflow.
The creation of the task requires a valid order.
type | The type of the task flow. |
id | The id of the task flow. |
quoteId | The id of the quote which should be honored. (OPTIONAL, can be null, String wid ). |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Void> de.zib.gndms.common.GORFX.service.TaskFlowService.deleteQuotes | ( | String | type, |
String | id, | ||
int | idx, | ||
String | dn, | ||
String | wid | ||
) |
Removes a quote form the list, ^.
type | The type of the task flow. |
id | The id of the task flow. |
idx | The index of the quote. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Void> de.zib.gndms.common.GORFX.service.TaskFlowService.deleteTaskflow | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Deletes a task flow.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Specifier<TaskFailure> > de.zib.gndms.common.GORFX.service.TaskFlowService.getErrors | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Delivers possible errors from the task(flow) execution.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Facets> de.zib.gndms.common.GORFX.service.TaskFlowService.getFacets | ( | String | type, |
String | id, | ||
String | dn | ||
) | [package] |
Delivers all facets of a task flow.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
ResponseEntity<Order> de.zib.gndms.common.GORFX.service.TaskFlowService.getOrder | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Delivers the order of the task flow.
The order contains the parameters of the taskflow, i.e. which data to stage, or the source and destination for a file transfer...
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Quote> de.zib.gndms.common.GORFX.service.TaskFlowService.getQuote | ( | String | type, |
String | id, | ||
int | idx, | ||
String | dn, | ||
String | wid | ||
) |
Delivers a single quote.
type | The type of the task flow. |
id | The id of the task flow. |
idx | The index of the quote. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<List<Specifier<Quote> > > de.zib.gndms.common.GORFX.service.TaskFlowService.getQuotes | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Delivers all quotes for the order.
Quotations are used for co-scheduling and describe temporal constrains for the taskflow executions. Its possible that there are more then one quotes for a task flow.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Specifier<TaskResult> > de.zib.gndms.common.GORFX.service.TaskFlowService.getResult | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Delivers the result of the taskflow execution.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<TaskFlowStatus> de.zib.gndms.common.GORFX.service.TaskFlowService.getStatus | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Delivers the status of the taskflow execution.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Specifier<Facets> > de.zib.gndms.common.GORFX.service.TaskFlowService.getTask | ( | String | type, |
String | id, | ||
String | dn, | ||
String | wid | ||
) |
Requests the task of the taskflow.
type | The type of the task flow. |
id | The id of the task flow. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Void> de.zib.gndms.common.GORFX.service.TaskFlowService.setOrder | ( | String | type, |
String | id, | ||
Order | orq, | ||
String | dn, | ||
String | wid | ||
) |
Changes the order of a task flow.
type | The type of the task flow. |
id | The id of the task flow. |
orq | The new order. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |
ResponseEntity<Integer> de.zib.gndms.common.GORFX.service.TaskFlowService.setQuote | ( | String | type, |
String | id, | ||
Quote | cont, | ||
String | dn, | ||
String | wid | ||
) |
Allows the client to provide a preferred quote.
If the preferred quote is valid, wrt. it can be satisfied, it is added to the list of possible quotes. Use getQuote() to see if the quote was accepted.
type | The type of the task flow. |
id | The id of the task flow. |
cont | The preferred quote. |
dn | The dn of the user invoking the method. |
wid | The id of the workflow, for logging purpose. |