...
Infrastructure services can be accessed from "http(s)://<mydomain>.emakin.com/rest/v1" url. Service methods can be called in rest format.
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
...
Request | Response | ||||
---|---|---|---|---|---|
|
|
ExecuteModule
...
Trigger
Triggers an event for listeners on all processes and returns array of id number of triggered work items. When there is no listener return value is a empty array.
Required Scope
moduleevent_executetrigger
Parameters
Parameter Name | Description | |
---|---|---|
apiKey | Caller system indentifieridentifier. | |
logonId | User logon id | |
logonProvider | User logon provider. | |
processeventName | Name or id of processevent | |
module | Name of module | |
function | Name of function | |
arguments | Array of function parameterstestMode | Trigger the test mode or not work items |
inputData | Event Data in XML can be null. | |
culture | Culture preference. Can be null. |
Example Call
Request | Response | ||||
---|---|---|---|---|---|
|
|
Trigger
Triggers an event for listeners on all processes and returns array of id number of triggered work items. When there is no listener return value is a empty array.
Required Scope
event_trigger
Parameters
...
...
Query
Query is xml based string that specifies the requested result. If not specified, default query is performed.
Query definition uses the following column names to be specified as a result set column name, criteria and order.
Worklist Columns
Name | Description |
---|---|
Id | Unique work item identifier |
Name | Name of a work item |
Caption | Localized caption of a work item. |
State | State of work a item. |
Start | Start date of a work item |
End | End date of a work item. Can be null. |
IsDeadlined | A boolean that specifies the deadline has occurred. |
DeadlineDate | Deadline date. Can be null. |
Example Call
...
No Format |
---|
POST http://ertan.emakin.com/rest/v1/trigger
{
"apiKey": "xxxx",
"logonId": "user@emakin.com",
"logonProvider": "Organization",
"eventName" : "myEvent",
"inputData": "<pool><eventParameter>ABC</eventParameter></pool>",
"testMode": false,
"culture": null
} |
...
No Format |
---|
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"d": ["716F8FCB-98C2-4591-8C43-043D54DEAADA"]
}
|
Query
Query is xml based string that specifies the requested result. If not specified, default query is performed.
Query definition uses the following column names to be specified as a result set column name, criteria and order.
Worklist Columns
...
Query contains the following sections;
Columns
List of column names that requested.
Where
List of criteria to be performed. Criteria name can be specified from column names.
Order
List of order to be performed. Order name can be specified from column names.
Example Query Xml
...
language | xml |
---|
...
NextReminderDate | Next reminder date. Can be null. |
SentReminders | Number of sent reminders |
Instructions | Instructions of work item |
InstanceId | Unique instance identifier |
PreviousWorkItemId | Previous id number of work item. Can be null. |
ActionId | Unique action identifier. Can be null. |
CompletedById | Id number of completed by user. Can be null. |
CompletedBy | Display name of completed by user. Can be null. |
Number | Instance number |
Priority | Instance priority |
ProcessId | Id number of process |
ProcessName | Name of process |
FromId | Id number of initiator user. Can be null. |
From | Display name of initiator user. Can be null. |
FolderId | Id number of related folder id. |
FolderName | Name of related folder. |
AssignedTo | List of assigned users |
VersionNumber | Version number of related process |
VersionId | Id number of related process version |
TestMode | A boolean that specifies instance is in test mode or not. |
Instance.Start | Start date of instance |
Instance.State | State of instance |
Query contains the following sections;
Columns
List of column names that requested.
Where
List of criteria to be performed. Criteria name can be specified from column names.
Order
List of order to be performed. Order name can be specified from column names.
Example Query Xml
Code Block | ||
---|---|---|
| ||
<Query Start="" MaxLength="25"> <Columns> <Column Expression="Id"/> <Column Expression="Instructions"/> <Column Expression="State"/> <Column Expression="FromId"/> <Column Expression="From"/> <Column Expression="SentReminders"/> <Column Expression="HasHistory"/> <Column Expression="Caption"/> <Column Expression="Start"/> <Column Expression="DeadlineDate"/> <Column Expression="End"/> <Column Expression="FolderName"/> <Column Expression="InstructionsNumber"/> </Columns> <Column Expression="State"/> <Where> <Criteria> <Column Expression="FromId"/> <Column<Criteria Expression="From"/>"Caption" Comparison="Like"> <Column Expression="SentReminders"/> <Value>My Task*</Value> <Column Expression="HasHistory"/> <Column Expression="Caption"/></Criteria> <Column Expression="Start"/></Criteria> </Where> <Column Expression="DeadlineDate"/><Order> <Order <Column Expression="EndStart"/> <Column Expression Type="FolderNameDescending" /> <Column Expression="Number"/> </Columns> <Where> <Criteria> <Criteria Expression="Caption" Comparison="Like"> <Value>My Task*</Value> </Criteria> </Criteria> </Where> <Order> <Order Expression="Start" Type="Descending" /> </Order> </Query> |
...
Returns the decision result.
Required Scope
decision_execute
Parameters
...
Example Call
...
No Format |
---|
POST https://ertan.emakin.com/rest/v1/decision
{
"apiKey": "",
"logonId": "user@emakin.com",
"logonProvider": "Organization",
"process" : "Decision",
"model" : "dinner",
"decision" : "Dish",
"inputData": "<pool><Season>Fall</Season><NumberOfGuests>2</NumberOfGuests></pool>"
} |
...
No Format |
---|
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 26
{"d":{"Dish":"Spareribs"}}
|
ActivityStream
Returns the activity stream of an object.
Required Scope
activity_read
Parameters
...
Example Call
...
No Format |
---|
POST https://ertan.emakin.com/rest/v1/activitystream
{
"apiKey": "",
"logonId": "user@emakin.com",
"logonProvider": "Organization",
"channelId": "2f9e4a39-66e0-45e8-9ef4-13ed00cc4089"
} |
...
</Order>
</Query> |
Decision
Returns the decision result.
Required Scope
decision_execute
Parameters
Parameter Name | Description |
---|---|
apiKey | Caller system identifier. |
logonId | User logon id |
logonProvider | User logon provider. |
process | Name or Id number of the process |
model | Name or Id number of the decision model |
decision | Name or Id number of the decision |
inputData | Decision input data. Xml or Json string. |
Example Call
Request | Response | |
---|---|---|
|
...
|
|