Search in sources :

Example 21 with WorkItem

use of io.automatiko.engine.api.runtime.process.WorkItem in project automatiko-engine by automatiko-io.

the class LightWorkItemManager method retryWorkItemWithParams.

public void retryWorkItemWithParams(String workItemId, Map<String, Object> map) {
    WorkItem workItem = workItems.get(workItemId);
    if (workItem != null) {
        ((WorkItemImpl) workItem).setParameters(map);
        retryWorkItem(workItem);
    }
}
Also used : WorkItemImpl(io.automatiko.engine.workflow.base.instance.impl.workitem.WorkItemImpl) WorkItem(io.automatiko.engine.api.runtime.process.WorkItem)

Example 22 with WorkItem

use of io.automatiko.engine.api.runtime.process.WorkItem in project automatiko-engine by automatiko-io.

the class UIWorkItemHandler method select.

private void select() {
    WorkItem workItem = getSelectedWorkItem();
    if (workItem != null) {
        UIWorkItemHandlerDialog dialog = new UIWorkItemHandlerDialog(UIWorkItemHandler.this, workItem);
        dialog.setVisible(true);
    }
}
Also used : WorkItem(io.automatiko.engine.api.runtime.process.WorkItem)

Aggregations

WorkItem (io.automatiko.engine.api.runtime.process.WorkItem)22 ProcessConfig (io.automatiko.engine.api.workflow.ProcessConfig)7 Test (org.junit.jupiter.api.Test)7 WorkItemHandler (io.automatiko.engine.api.runtime.process.WorkItemHandler)6 JsonNode (com.fasterxml.jackson.databind.JsonNode)5 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)5 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)5 TextNode (com.fasterxml.jackson.databind.node.TextNode)5 WorkItemManager (io.automatiko.engine.api.runtime.process.WorkItemManager)5 ClassPathResource (io.automatiko.engine.services.io.ClassPathResource)5 DefaultWorkItemHandlerConfig (io.automatiko.engine.workflow.DefaultWorkItemHandlerConfig)5 ProcessInstance (io.automatiko.engine.api.runtime.process.ProcessInstance)4 ArrayList (java.util.ArrayList)4 HumanTaskWorkItem (io.automatiko.engine.api.runtime.process.HumanTaskWorkItem)3 HashMap (java.util.HashMap)3 DelayedExecution (io.automatiko.engine.api.event.process.DelayedExecution)2 ProcessCompletedEvent (io.automatiko.engine.api.event.process.ProcessCompletedEvent)2 ProcessEventListener (io.automatiko.engine.api.event.process.ProcessEventListener)2 ProcessNodeInstanceFailedEvent (io.automatiko.engine.api.event.process.ProcessNodeInstanceFailedEvent)2 ProcessNodeLeftEvent (io.automatiko.engine.api.event.process.ProcessNodeLeftEvent)2