Skip to content

Commit

Permalink
impl and update docu
Browse files Browse the repository at this point in the history
Issue #850
  • Loading branch information
rsoika committed Feb 5, 2024
1 parent a2e583d commit c461da6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1057,12 +1057,14 @@ private void evaluateSplitEvent(ItemCollection event, ItemCollection documentCon

}

/**

/**
* This method creates a new instance of a sourceWorkitem. The method did not
* save the workitem!.
* <p>
* The new property $UniqueIDSource will be added to the new version, which
* points to the $uniqueID of the sourceWorkitem.
* In addtion the item $created.version marks the point of time.
* <p>
* The new property $UniqueIDVersions will be added to the sourceWorktiem which
* points to the id of the new version.
Expand All @@ -1084,7 +1086,8 @@ private ItemCollection createVersion(ItemCollection sourceItemCollection) throws

// update $unqiueIDSource
itemColNewVersion.replaceItemValue(UNIQUEIDSOURCE, id);

itemColNewVersion.replaceItemValue(CREATED+".version", sourceItemCollection.getItemValueDate(LASTEVENTDATE));

// remove $UniqueIDVersions
itemColNewVersion.removeItem(UNIQUEIDVERSIONS);

Expand Down
1 change: 1 addition & 0 deletions src/site/markdown/core/workflowkernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ The current process instance is called the _Source Workitem_. The _Source Workit
|$workitemId | x | x |A unique shared key across all versions and the source workitem. |
|$uniqueIdSource | | x |A reference to the $UniqueID of the Source workitem. |
|$uniqueIdVersions | x | |A list of $UniqueIDs of all created versions. |
|$created.version | | x |Date of creation of a version.
|$isVersion | | x |This temporary attribute indicates that the current instance is a version. |

The temporary attribute _'$isVersion'_ flags the version during the processing phase and can be used by Plugins to handle these workitems. See also the section: [Workflow Data](../quickstart/workitem.html#Temporary_Attributes).
Expand Down

0 comments on commit c461da6

Please sign in to comment.