Me

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Process wizard > Business Rules > Bizagi Functions > Me Functions >

Me

FUNCTION

DESCRIPTION

SYNTAX

attachCollectionItem("XPath", item)

Allows to attach one item (record) from one collection to another collection. The item is not duplicated, it is shared by both collections.

Both collections must belong (be related) to the same entity.

 

Parameter 1: Collection XPath that will receive the item.

Parameter 2: Item XPath to be attached.

Me.attachCollectionItem("XPath",item)

attachCollectionItems("XPath", items)

Allows to attach one or more items (records) from one collection to another collection. The items are not duplicated, they are shared by both collections.

Both collections must belong (be related) to the same entity.

 

Parameter 1:  Collection XPath that will receive the item.

Parameter 2: Items XPath to be attached.

Me.attachCollectionItems("XPath",items)

CanRelease

Returns true when the current task can be released.

Me.CanRelease

deleteAllCollectionItems("XPath")

Allows the complete deletion of all items (records) of a collection. The items will be deleted from the collection and from the database.

 

Parameter: Collection XPath

Me.deleteAllCollectionItems("XPath")

deleteCollectionItem("XPath", item)

Allows the complete deletion of one item (record) of a collection. The item will be deleted from the collection and from the database.

 

Parameter 1: Collection XPath

Parameter 2: XPath to the item of the collection to remove. This XPath must return ONE and only ONE item. If not, the function will fail.

Me.deleteCollectionItem("XPath",item)

deleteCollectionItems("XPath", item)

Allows the complete deletion of one or more items (records) of a collection. The items will be deleted from the collection and from the database.

 

Parameter 1: Collection XPath

Parameter 2: XPath to the items of the collection to remove

Me.deleteCollectionItems("XPath",item)

detachAllCollectionItems("XPath")

Allows detaching all items (records) from a collection. The items will no longer be a part of the collection but they will not be deleted from the database.  

 

Parameter: Collection XPath to be detached

Me.detachAllCollectionItems("XPath")

detachCollectionItem("XPath", item)

Allows detaching one item (record) from a collection. The item will no longer be a part of the collection but it will not be deleted from the database.

 

Parameter 1: The XPath must be the collection that will lose the item.

Parameter 2: XPath to the item of the collection to detach. This XPath must return ONE and only ONE item. If not, the function will fail.

Me.detachCollectionItem("XPath",item)

detachCollectionItems("XPath", items)

Allows detaching one or more items (records) from a collection. The items will no longer be a part of the collection but they will not be deleted from the database.

 

Parameter 1: Collection XPath

Parameter 2: XPath to the items of the collection to detach.

Me.detachCollectionItems("XPath", items)

Duration

This function is used to set the duration of a Timer Event or an Activity. The duration is set in minutes.

Me.Duration

EntryDate

This function returns the creation date of the current workitem.

Me.EntryDate

EstimatedSolutionDate

This function is used to assign the date in which a Timer Event or an Activity are due.

Me.EstimatedSolutionDate

getXPath("XPath")

This function is used to obtain values of the data model, as using angle brackets <>.

The function has to be used when obtaining values from filtered collections that use variables.

 

Parameter: XPath. Keep in mind that the XPath is written without inner angle brackets.

Me.getXPath("XPath")

Id

Returns the id of the current workitem.

Me.Id

newCollectionItem("XPath")

Allows the inclusion of a new item (record) to a collection. The item is initially included as a blank entry. You can assign a variable to set values to the new record.

 

Parameter: Collection XPath

Me.newCollectionItem("XPath")

removeRelation("XPath", bool)

Allows to delete items from a collection. It is possible to specify whether you want or not to delete the database records in the second parameter.

Me.removeRelation("XPath", bool)

setXPath("XPath", value to set)

This function is used to set values to attributes of the data model.

The function has to be used when setting values to filtered collections using variables.

It must also be used to set Today's date (DateTime.Today)

 

Parameter 1 : XPath. Keep in mind that the XPath is written without inner angle brackets.

Parameter 2: Value to set.

Me.setXPath("XPath", value to set)

TimerEventDuration

This function is used to set a duration to a Timer Event attached to the boundaries of an Activity.  The duration is set in minutes.

Me.TimerEventDuration