Search in sources :

Example 1 with WorkflowExecutionService

use of org.onosproject.workflow.api.WorkflowExecutionService in project onos by opennetworkinglab.

the class WorkFlowCommand method eval.

/**
 * Evaluates workflow context.
 * @param workflowContextName workflow context name
 */
private void eval(String workflowContextName) {
    WorkplaceStore storService = get(WorkplaceStore.class);
    WorkflowExecutionService execService = get(WorkflowExecutionService.class);
    WorkflowContext context = storService.getContext(workflowContextName);
    if (context == null) {
        error("failed to find workflow context {}", workflowContextName);
        return;
    }
    execService.eval(workflowContextName);
}
Also used : WorkplaceStore(org.onosproject.workflow.api.WorkplaceStore) WorkflowExecutionService(org.onosproject.workflow.api.WorkflowExecutionService) WorkflowContext(org.onosproject.workflow.api.WorkflowContext)

Aggregations

WorkflowContext (org.onosproject.workflow.api.WorkflowContext)1 WorkflowExecutionService (org.onosproject.workflow.api.WorkflowExecutionService)1 WorkplaceStore (org.onosproject.workflow.api.WorkplaceStore)1