Creates a new model instance and waits until it receives a confirmation message with the model instance ID. Note that the message is sent asynchronously when the interpretation of the new model instance starts. Hence the task becomes finished even though the first transaction of the new model instance failed and was rolled back.
<pre>//example task parameters: model -> getModel("registration"), properties -> [ "customer" -> "John Doe"], modelInstance -> &modelInstanceVar</pre>
Model to be instantiated.
Map of model instance initialization properties. If null, an empty properties map is created in the instantiated model.
Reference to the created model instance. If the created model instance throws a runtime exception during its initialization, it is set to null.
Throws:
Terminates a running model instance which becomes finished. <pre>//example task parameters: modelInstance -> getModelInstance(25009)</pre>
Model instance to be terminated.
Throws:
Permanently removes process logs of the specified model instances from the database. All model instances must be finished. Note that process logs hold data on each changes of model, process, and element instances. Other data, such as the logs created by the instance, its properties, entry on the fiinished model instance, the model-instance update log, etc. remain unchanged. <pre>//example task parameters: modelInstances -> {getModelInstance(8000)}</pre>
A set of finished model instances whose logs are deleted.
Throws:
(Re)activates an inactive or finished goal. An active goal remains unchanged. <pre>//example task parameter: goal -> booking::BookedOnlineGoal</pre>
Goal to be (re)activated.
Throws:
Deactivates an unfinished goal. If the goal is finished or the goal’s process is finished, the task type does nothing. <pre>//example task parameter: goal -> booking::BookedOnlineGoal</pre>
Goal to be deactivated.
Throws:
Repeats a set of goals: It deactivates and reactivates the specified achieve goals. If the list includes a pair of achieve goals with one being the subgoal of the other or the process instance of any of the goals is finished, a runtime exception is thrown. <pre>//example task parameter: goals -> [booking::BookedOnlineGoal]</pre>
Achieve goals to deactivate and reactivate.
Throws:
Deletes the specified shared records and all related (by data relationships) shared records from the database. Note that it is not possible to delete system shared records. <pre>//example task parameter: data -> {getApplicantByName("John")}</pre>
Set of shared records to delete.
Throws:
Permanently removes the specified binary data from the database. The fields of the handle are cleaned up as well (set to the default values). The execution of the task required the Binary:Delete
security right.
Binary handle pointing to the binary data to be removed. The fields of the handle are cleaned up as well (set to the default values).
Throws:
Creates a model instance-independent lock. The result is stored in the <i>result</i> slot. The lock can be removed byt the Unlock task.
Name (identifier) of the lock.
Description of the lock.
If true, a new lock was successfully created. If false, a lock with the same name already exists.
If the result is true, the value of the referred string is not changed. If the result is false, the value of the referred string is replaced with the message of the already existing lock with the same name.
Throws:
Removes a lock created by a Lock task, possibly from another model instance.
Name of the lock to be removed.
Throws:
Parses XML document to data structures. <pre>xml -> "<?xml version=""1.0"" encoding=""UTF-8""?> <ns0:RegistrationData xmlns:ns0=""urn:lsps:common"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""> <ns0:id>3</ns0:id> <ns0:firstName>John</ns0:firstName> <ns0:lastName>Doe</ns0:lastName> </ns0:RegistrationData>", output -> &parsedXML, useDefaultMapping -> true, typesNamespace -> null</pre>
XML document to parse.
Reference to where the result is stored. The type of reference provided determines which object is parsed from the XML. The referred object must be of a record type; otherwise an exception is thrown.
If true, the default LSPS XML mapping is used. Otherwise, the metadata defined on the record types are taken into account. If parsing types generated from XSD, this parameter must be set to false. The default value is false.
If the default mapping is used, this parameter determines the XML namespace used for elements. If the default mapping is not used, this parameter is ignored. The default value is null.
Throws:
Converts data structures to XML document. <pre>//example task parameters: object -> new RegistrationData(firstName -> "Ellen", lastName -> "Doe", approved -> true), output -> &varWithXml, useDefaultMapping -> false, typesNamespace -> null</pre>
The instance of a record type to be converted to XML.
Reference to where to store the output XML.
If true, the default LSPS XML mapping is used. Otherwise, the meta- data defined on record types are taken into account. If you are converting to XML an object of a type that was generated from XSD, the parameter must be set to false. The default value is false.
If the default mapping is used, this parameter determines XML namespace used for elements. If the default mapping is not used, this parameter is ignored. The default value is null.
Throws:
Performs an HTTP call and stores the response. <pre>httpMethod -> "GET", url -> "http://localhost.com:9500/myIndex/section/_search", request -> "{""query"":{""term"":{""title"":""search for me""}}}", requestContentType -> "application/json", isSynchronous -> true</pre>
Type of the method to be performed. Possible values are “GET”, “POST”, “PUT”, and “DELETE”.
Endpoint address of the target HTTP service.
Request payload. Can be either String or core::BinaryHandle. All other objects are converted to String. String is converted to data stream in the charset specified in the requestContentType parameter. If the charset is not specified, UTF-8 is used. If core::BinaryHandle object is used, request payload will contain data from this handle.
Content type (MIME) of the request payload.
Reference to where the response payload is stored.
Reference to where the response code is stored.
Login for the HTTP BASIC authentication.
Password for the HTTP BASIC authentication.
Socket timeout for the call.
Map of the request HTTP headers to be sent together with the request.
Reference to the map of the HTTP response headers.
If true, the task is executed synchronously in the context of process instance. If false or null, the task is executed asynchronously, outside of the process context.
Throws:
Logs a specified message to the application log at the specified log level. <pre>//example task parameters: message -> "The item was successfully created.", level -> 100</pre>
Message to be logged.
Log level. Unspecified level value logs at the “Info” level.
Throws:
Writes the objects to the target slots: map keys define the target slots as references and values define the objects. References in the slots keys must not be null.
Map with references to target slots as keys and values to assign to the slots as map values.
Throws:
Executes the specified activity. <pre>//example task parameter: activity -> new registration::Approval() //Approval is the Activity of a process with the <i>Create activity reflection type</i> flag</pre>
Activity to execute.
Throws: