-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
= Running Simulation in Tasks | ||
:page-since: "4.7" | ||
|
||
An example of running a simulation task: | ||
|
||
.Listing 1. An import task executing in simulation mode, over development configuration, and with creation of a simulation result | ||
[source,xml] | ||
---- | ||
<task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
oid="8b169df3-3124-4e36-871f-83bb52acfd7b"> | ||
<name>Simulated import from HR</name> | ||
<executionState>runnable</executionState> | ||
<activity> | ||
<work> | ||
<import> | ||
<resourceObjects> | ||
<resourceRef oid="236dd5ca-47df-403c-82e1-9ce2f36be000"/> | ||
<objectclass>ri:AccountObjectClass</objectclass> | ||
</resourceObjects> | ||
</import> | ||
</work> | ||
<execution> | ||
<mode>preview</mode> <!--1--> | ||
<configurationToUse> | ||
<set>development</set> <!--2--> | ||
</configurationToUse> | ||
</execution> | ||
<reporting> | ||
<simulationResult/> <!--3--> | ||
</reporting> | ||
</activity> | ||
</task> | ||
---- | ||
<1> The value of `preview` means we do not want to execute the actions in this task. | ||
<2> `development` means we want to use the development configuration in this task. | ||
<3> The presence of `simulationResult` means we want to create the simulation result object. | ||
|
||
For more information, please see | ||
|
||
- xref:/midpoint/reference/tasks/activities/execution-mode.adoc[activity execution mode] specification | ||
- xref:/midpoint/reference/tasks/activities/reporting/simulation-result.adoc[activity simulation result] definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
= Simulation Result | ||
:page-since: "4.7" | ||
|
||
#TODO# |