Skip to content

Commit

Permalink
Bulk action "add user" sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 10, 2017
1 parent b4f91ec commit cd1aff7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions samples/tasks/bulk-actions/add-user.xml
@@ -0,0 +1,42 @@
<!--
~ Copyright (c) 2010-2017 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<c:task xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<c:name>Create user</c:name>
<c:extension>
<scext:executeScript xmlns:scext="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3">
<s:action>
<s:type>add</s:type>
</s:action>
<s:input>
<s:value xsi:type="c:UserType">
<c:name>joe</c:name>
<c:givenName>Joe</c:givenName>
<c:familyName>Doe</c:familyName>
</s:value>
</s:input>
</scext:executeScript>
</c:extension>
<c:taskIdentifier>1507208317101:451769069</c:taskIdentifier>
<c:ownerRef oid="00000000-0000-0000-0000-000000000002"/>
<c:executionStatus>runnable</c:executionStatus>
<c:category>BulkActions</c:category>
<c:handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/scripting/handler-3</c:handlerUri>
<c:recurrence>single</c:recurrence>
</c:task>

0 comments on commit cd1aff7

Please sign in to comment.