Data availability
Three categories
of data from upstream actions are available to a custom action
|
|
1.
Data from all previous events and actions.
E.g. for above screenshot, at first condition “if account event type is
compromised pwd”, data exposed by “Identity Account Event” is available for composing
the condition. Under this category, below attributes are available for downstream
actions
a.
Account UPN
b.
Account Domain
c.
Account email
d.
… etc
2.
Similarly, at “Device query” step, data exposed
by all previous steps, including output of both trigger and “Get Identity
Context”, are available for “Devie Query” to use – this can be seen in the
right side of the screenshot under “workflow data” where all first level nodes
are the data source
3.
Trigger data
a.
Trigger category
b.
cid
c.
Trigger ID
d.
…etc
4.
Workflow data
a.
Workflow definition data
i.
Workflow definition ID
ii.
Workflow name
iii.
Workflow description
b.
Workflow execution data
i.
Execution error
ii.
Execution id
Data available to an action in a workflow is accumulative,
meaning the action can read all outputs from all previous steps
Step-by-step:
1.
Write the script as below
Compose input and output JSON files. For above source
code, JSON file as below
a.
Input.JSON
|
{ "EntitySID": "S-1-5-21-1234-5678-90123-555", "AccountDomain":"contoso.com" } |
b.
Output.JSON
|
{ "Output_param1": "", "Output_param2":"" } |
3.
Let CS convert above JSON file to input output
schemas
|
|
4.
Now move to workflow editor, select the RTR-based
custom action, it should list the input parameters. In our example above, it
should list EntitySID and AccountDomain that allow you to pick available (exposed
by previous steps) data and populate
5.
In actions after our custom action, “output_Param1”
and “output_param2” should become available
Test:
1. You can do either whole workflow test or a unit test against a single action. You will have to go into Edit mode to perform tests.
- To perform workflow test, use the "Test" button on top right corner of edit window;
- To perform unit test, select the action, click on "Test" on left hand panel
Mock data for test:
One can set mock data to test. Mock data can be from either previous runs - they are listed for you to select from as your mock data source - or from custom JSON
- Enter editing mode
- highlight the trigger (or any subsequent actions)
- click "Execution settings", it tells you what the current source is
T

