This section introduces JavaScript classes that are provided by Emakin and their how-to-use. Emakin allows running default JavaScript codes beside these classes in various places in a workflow, for example in Task Prework Script, Task Postwork Script, Form Script, Role Script and even on the form.
Users and Organization Data
- $Membership
Allows to access users and organization database objects. - Identity
Represents an identity (User, Organization Unit, Position, Group) in system.
Data Model and Xml Data
- $Xml
Allows to access process data model. - XmlNodeXml
Instance of a XML dom node. - $XmlRepository
Allows to access xml based database.
Database Management
- $Database
Allows to perform relational database operations. - DataTable
Represents a relational database query result. - DataTableDictionary
Represents a data dictionary from DataTable instance for fast access. - DataTableRow
Represents a database table row instance.
Documents and Files
- $Documents
Allows to access document repository. - $Files
Allows to access standard file repository for basic files. - Files
Represents the instance of file a file repository. - Document
Represents a document instance with one or more files. - FileInfo
Represents a file instance.
Messaging
- $Messages
Allows to send new mails or parsing messages. - Message
Represents a mail message with MIME standard. - $ActivityStream
Allows to push system generated activities on activity stream.
Integration
- $Rest
Allows to call rest services with JSON or XML content types. - $Services
Allows to call SOAP services with JSON or XML content types. - RestClient
Represents a connection with a rest service. - RestRequest
Represents a request to perform with a rest service client. - RestResponse
Represents a response received from a rest service.
Business Rules
- $Decisions
Allows to perform script operations using predefined decision tables.
Calendar
- $Calendar
Gets the default calendar. - Calendar
Instance of a calendar that performs date based operations like adding or calculating differences by rules. - DateTimeOffset
The DateTimeOffset object represents a date and time value.
Task Delegation
- $Delegation
Allows to manage delegations between users. - DelegationEntry
Specifies a delegation entry.
Cryptography
- $Crypto
Allows the access cryptographic functions like hashing, encryption or sign or verify. - VerificationResult
Instance of digital signature verification result that contains validity status and signer information of signatures. - VerificationSignature
Specifies the result of single signature verification.
Localization
- $Localization
Allows to access localization dictionary entries from scripting environment. - $Templates
Allows to access templates that defined in pool definition.
Utilities
- $Domain
Allows to access domain specific properties. - $Cache
Allows to store and fetch objects for a limited time with fast access. - $Market
Allows to access market resources for license checks. - Milestone
Represents a milestone that created with Milestones.Add method. - Milestones
Represents the list of milestones on a case. - Script
Provides general usage utility functions.