Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Prework script are commonly used to control process data or task state before assign to the users.

In prework script following objects are available:

$WorkItem
Current workitem instance.

$Xml
Xml data navigator for data model.

Instance Objects

$Instance
Current workflow instance.

$Initiator
Initiator of the workflow instance.

$TestMode
A boolean value that specifies the current workflow instance is in test mode.

$Priority
A value between 0 to 5 specifies the priority of the workflow instance.

$Culture
A string value that specifies the initiated culture of the workflow instance. (Example: "en" or "de" or "tr")

/wiki/spaces/EMK/pages/9930714
Translation dictionary that provides localized texts.

$Database
Provides methods to query relational database.

Generic Objects

$Membership
Provides methods to access the organization database.

$Calendar
Provides methods for time based calculations and working hours calendar.

$XmlRepository
Provides methods to query non-relational databases.

$Domain
Allows accessing domain preferences.

$Services
Allows accessing defined web services.

$Messages
Allows sending email messages.

$Crypto
Performs cryptographic and digital signature operations.

$Delegation
Allows accessing user delegation library.

$Files
Allows accessing file repository.

$Documents
Allows accessing document repository. 

$Membership
Provides methods to access organization database.

$Calendar
Provides methods for time based calculations and working hours calendar.

$XmlRepository
Provides methods to query non-relational database.

$Domain
Allows to access domain preferences.

$Services
Allows to access defined web services.

$Messages
Allows to send email messages.

$Crypto
Performs cryptographic and digital signature operations.

$Delegation
Allows to access user delegation library.

$Files
Allows to access file repository.

$Documents
Allows to access document repository. 

Common operations

Auto Process Task

Automatically process current work item without assign to users and skip to next step in workflow.

Assign action
$WorkItem.SelectedAction = 'Approve';

Dynamic Deadline Date

Set deadline date by user entered data.

Assign action
$WorkItem.DeadlineDate = $Xml.Evaluate('PaymentDate');
  • No labels