Tasks
A task is used to set up a workflow by using the functions, also called objects, needed to perform the job. A task can consist of more than one function and can be called for and carried out both on server side as well as client side.
However, tasks need some other functions to be done first so that they can be executed. For example, you must log on to Net iD Portal to be able to perform your task. You might also need to get some specific information about the Net iD Portal configuration in order to make the logon. These higher order functions can be:
Setup functions
-
SwitchOrganization
-
Login
-
Logout
Information collecting functions
-
GetVersion
-
GetData
-
GetList
-
Search
-
GetObject
Task related functions
-
CreateTask
-
GetTask
-
ExecuteTask
-
CancelTask
-
ExecuteActivity
Workflow example
Here is an example of a complete workflow:
-
<GetObject "GetApplicationInfo">
-
For example check information such as AllowedCertList and SecurityMode, that is if communication should be encrypted.
-
-
-
Log in to Net iD Portal and set up encrypted communication with the server.
-
-
GetLoginStatus
-
Check that the login was successful.
-
-
SwitchOrganization
-
If needed, change the organization the user is …
-
-
Search
-
Make a search to get the necessary information.
-
-
GetObject
-
Get the necessary information object or objects.
-
-
CreateTask
-
Create a task to perform an action on the information object.
-
-
ExecuteTask
-
Execute the task.
-
-
Logout
-
Logout from Net iD Portal.
-