Skip to content

Commit

Permalink
impl
Browse files Browse the repository at this point in the history
Issue #823
  • Loading branch information
rsoika committed Aug 6, 2024
1 parent 2a748ad commit 8e6a88b
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 144 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public void cloneItem(String itemName, ItemCollection source) {
List<Object> copy = (List<Object>) ois.readObject();
hash.put(itemName, copy);
} catch (IOException | ClassNotFoundException e) {
logger.log(Level.WARNING, "Unable to clone values of Item ''{0}'' - {1}", new Object[]{itemName, e});
logger.log(Level.WARNING, "Unable to clone values of Item ''{0}'' - {1}", new Object[] { itemName, e });
}
}

Expand Down Expand Up @@ -1431,33 +1431,22 @@ public int getEventID() {
}

/**
* set $eventID
* Set the $eventID for a workitem.
*
* @param eventID
*/
public void setEventID(int eventID) {
replaceItemValue(WorkflowKernel.EVENTID, eventID);

// if deprectaed ActivityID exists we must still support it
if (hasItem("$activityid")) {
replaceItemValue("$activityid", eventID);
}
}

/**
* Set the event id for a workitem. If a event id is already set, the method
* appends the event to the ACTIVITYIDLIST
* Set the $eventID for a workitem.
*
* @param eventID
* @return
*/
public ItemCollection event(int eventID) {
if (this.getEventID() == 0) {
setEventID(eventID);
} else {
// set
appendItemValue(WorkflowKernel.ACTIVITYIDLIST, eventID);
}
setEventID(eventID);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
package org.imixs.workflow;

/**
* This Interface defines the Context which is used to supply a basic enviroment
* for the exchange between a WorkflowManager an the registered Plugin Moduls.
* Normaly the WorkflowManager Implementation itself implents this Interface to
* provide the Context for the Workflow components.
* This WorkflowContext provides the {@link WorkflowKernel} with a runtime
* environment for the processing live cycle of a workitem.
* A Workflow Engine implements this Interface to provide a {@link ModelManger}
* and the session context to execute {@link Plugin} and {@link Adapter}
* classes.
*
* @author imixs.com
* @version 1.0
Expand All @@ -42,16 +43,16 @@
public interface WorkflowContext {

/**
* This Methode returns the Runtime enviroment for a workflow Implementation. is
* usesd to initialize the plugin.
* This methode returns the Runtime environment for a workflow Implementation
* used to execute {@link Plugin} and {@link Adapter} classes.
*
* @return a Session Object
*/
public Object getSessionContext();

/**
* This method returns an instance of a IModelManager to access model
* information
* This method returns an instance of the {@link ModelManager} to access model
* information form a BPMN model.
*
* @return ModelManager
*/
Expand Down
Loading

0 comments on commit 8e6a88b

Please sign in to comment.