summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZsolt Kovcs <zs.myth@gmail.com>2014-10-07 17:44:21 +0100
committerZsolt Kovcs <zs.myth@gmail.com>2014-10-07 17:44:21 +0100
commit3cf2fb9a9963d40dd21782ac77512c40084e5c82 (patch)
tree368801224083b723fb6935524fa7be59f18e004b /src
parent0ed2c1124cf1b9e49a2ec1fa0126a8df09f9e758 (diff)
Adding CreateNewRole to the workflow of server Item
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/boot/CA/ServerItemWorkflow.xml370
-rw-r--r--src/main/resources/boot/EA/CreateNewRole.xml41
-rw-r--r--src/main/resources/boot/SC/ServerNewEntity.xml28
-rw-r--r--src/main/resources/boot/allbootitems.txt1
4 files changed, 314 insertions, 126 deletions
diff --git a/src/main/resources/boot/CA/ServerItemWorkflow.xml b/src/main/resources/boot/CA/ServerItemWorkflow.xml
index 6f351ae..ddf801a 100644
--- a/src/main/resources/boot/CA/ServerItemWorkflow.xml
+++ b/src/main/resources/boot/CA/ServerItemWorkflow.xml
@@ -20,217 +20,341 @@
http://www.fsf.org/licensing/licenses/lgpl.html
-->
-<CompositeActivityDef ID="-1" Name="ServerItemWorkflow" Height="0" Width="0" IsLayoutable="false" IsComposite="true">
+<CompositeActivityDef ID="-1" Name="NewServeritemWorkflow"
+ Height="0" Width="0" IsLayoutable="false" IsComposite="true">
<childrenGraphModel>
- <GraphModelCastorData StartVertexId="4" NextId="21">
- <JoinDef ID="9" Name="" Height="24" Width="60" IsLayoutable="true" IsComposite="false">
- <CentrePoint x="244" y="378"/>
- <OutlinePoint x="214" y="366"/>
- <OutlinePoint x="274" y="366"/>
- <OutlinePoint x="274" y="390"/>
- <OutlinePoint x="214" y="390"/>
+ <GraphModelCastorData StartVertexId="4" NextId="29">
+ <LoopDef ID="25" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false" isNext="0">
+ <CentrePoint x="540" y="287" />
+ <OutlinePoint x="510" y="275" />
+ <OutlinePoint x="570" y="275" />
+ <OutlinePoint x="570" y="299" />
+ <OutlinePoint x="510" y="299" />
+ <InEdgeId>27</InEdgeId>
+ <OutEdgeId>26</OutEdgeId>
+ <OutEdgeId>28</OutEdgeId>
+ <Properties>
+ <KeyValuePair Key="LastNum" isAbstract="false" String="2" />
+ <KeyValuePair Key="RoutingScriptName" isAbstract="false"
+ String="javascript:true;" />
+ <KeyValuePair Key="RoutingScriptVersion" isAbstract="false"
+ String="" />
+ </Properties>
+ </LoopDef>
+ <JoinDef ID="22" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false">
+ <CentrePoint x="540" y="75" />
+ <OutlinePoint x="510" y="63" />
+ <OutlinePoint x="570" y="63" />
+ <OutlinePoint x="570" y="87" />
+ <OutlinePoint x="510" y="87" />
+ <InEdgeId>23</InEdgeId>
+ <InEdgeId>28</InEdgeId>
+ <OutEdgeId>24</OutEdgeId>
+ <Properties>
+ <KeyValuePair Key="Type" isAbstract="false" String="Join" />
+ </Properties>
+ </JoinDef>
+ <ActivitySlotDef ID="21" Name="CreateNewRole slot"
+ Height="60" Width="130" IsLayoutable="true" IsComposite="false">
+ <CentrePoint x="670" y="181" />
+ <OutlinePoint x="605" y="151" />
+ <OutlinePoint x="735" y="151" />
+ <OutlinePoint x="735" y="211" />
+ <OutlinePoint x="605" y="211" />
+ <InEdgeId>24</InEdgeId>
+ <OutEdgeId>27</OutEdgeId>
+ <Properties>
+ <KeyValuePair Key="Name" isAbstract="false" String="CreateNewRole" />
+ <KeyValuePair Key="Version" isAbstract="false"
+ Integer="0" />
+ </Properties>
+ <activityDef>CreateNewRole</activityDef>
+ </ActivitySlotDef>
+ <JoinDef ID="9" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false">
+ <CentrePoint x="427" y="355" />
+ <OutlinePoint x="397" y="343" />
+ <OutlinePoint x="457" y="343" />
+ <OutlinePoint x="457" y="367" />
+ <OutlinePoint x="397" y="367" />
<InEdgeId>16</InEdgeId>
<InEdgeId>17</InEdgeId>
+ <InEdgeId>26</InEdgeId>
<Properties>
- <KeyValuePair Key="Type" String="Join"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Join" />
</Properties>
</JoinDef>
- <LoopDef ID="8" Name="" Height="24" Width="60" IsLayoutable="true" IsComposite="false" isNext="0">
- <CentrePoint x="448" y="271"/>
- <OutlinePoint x="418" y="259"/>
- <OutlinePoint x="478" y="259"/>
- <OutlinePoint x="478" y="283"/>
- <OutlinePoint x="418" y="283"/>
+ <LoopDef ID="8" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false" isNext="0">
+ <CentrePoint x="428" y="284" />
+ <OutlinePoint x="398" y="272" />
+ <OutlinePoint x="458" y="272" />
+ <OutlinePoint x="458" y="296" />
+ <OutlinePoint x="398" y="296" />
<InEdgeId>15</InEdgeId>
<OutEdgeId>16</OutEdgeId>
<OutEdgeId>19</OutEdgeId>
<Properties>
- <KeyValuePair Key="LastNum" String="2"/>
- <KeyValuePair Key="RoutingScriptName" String="javascript:true;"/>
+ <KeyValuePair Key="LastNum" isAbstract="false" String="2" />
+ <KeyValuePair Key="RoutingScriptName" isAbstract="false"
+ String="javascript:true;" />
+ <KeyValuePair Key="RoutingScriptVersion" isAbstract="false"
+ String="" />
</Properties>
</LoopDef>
- <LoopDef ID="7" Name="" Height="24" Width="60" IsLayoutable="true" IsComposite="false" isNext="0">
- <CentrePoint x="36" y="284"/>
- <OutlinePoint x="6" y="272"/>
- <OutlinePoint x="66" y="272"/>
- <OutlinePoint x="66" y="296"/>
- <OutlinePoint x="6" y="296"/>
+ <LoopDef ID="7" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false" isNext="0">
+ <CentrePoint x="239" y="284" />
+ <OutlinePoint x="209" y="272" />
+ <OutlinePoint x="269" y="272" />
+ <OutlinePoint x="269" y="296" />
+ <OutlinePoint x="209" y="296" />
<InEdgeId>14</InEdgeId>
<OutEdgeId>17</OutEdgeId>
<OutEdgeId>18</OutEdgeId>
<Properties>
- <KeyValuePair Key="LastNum" String="2"/>
- <KeyValuePair Key="RoutingScriptName" String="javascript:true;"/>
+ <KeyValuePair Key="LastNum" isAbstract="false" String="2" />
+ <KeyValuePair Key="RoutingScriptName" isAbstract="false"
+ String="javascript:true;" />
+ <KeyValuePair Key="RoutingScriptVersion" isAbstract="false"
+ String="" />
</Properties>
</LoopDef>
- <JoinDef ID="6" Name="" Height="24" Width="60" IsLayoutable="true" IsComposite="false">
- <CentrePoint x="431" y="73"/>
- <OutlinePoint x="401" y="61"/>
- <OutlinePoint x="461" y="61"/>
- <OutlinePoint x="461" y="85"/>
- <OutlinePoint x="401" y="85"/>
+ <JoinDef ID="6" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false">
+ <CentrePoint x="428" y="73" />
+ <OutlinePoint x="398" y="61" />
+ <OutlinePoint x="458" y="61" />
+ <OutlinePoint x="458" y="85" />
+ <OutlinePoint x="398" y="85" />
<InEdgeId>11</InEdgeId>
<InEdgeId>19</InEdgeId>
<OutEdgeId>13</OutEdgeId>
<Properties>
- <KeyValuePair Key="Type" String="Join"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Join" />
</Properties>
</JoinDef>
- <JoinDef ID="5" Name="" Height="24" Width="60" IsLayoutable="true" IsComposite="false">
- <CentrePoint x="51" y="78"/>
- <OutlinePoint x="21" y="66"/>
- <OutlinePoint x="81" y="66"/>
- <OutlinePoint x="81" y="90"/>
- <OutlinePoint x="21" y="90"/>
+ <JoinDef ID="5" Name="" Height="24" Width="60" IsLayoutable="true"
+ IsComposite="false">
+ <CentrePoint x="239" y="78" />
+ <OutlinePoint x="209" y="66" />
+ <OutlinePoint x="269" y="66" />
+ <OutlinePoint x="269" y="90" />
+ <OutlinePoint x="209" y="90" />
<InEdgeId>10</InEdgeId>
<InEdgeId>18</InEdgeId>
<OutEdgeId>12</OutEdgeId>
<Properties>
- <KeyValuePair Key="Type" String="Join"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Join" />
</Properties>
</JoinDef>
- <AndSplitDef ID="4" Name="" Height="24" Width="60" IsLayoutable="true" IsComposite="false">
- <CentrePoint x="239" y="23"/>
- <OutlinePoint x="209" y="11"/>
- <OutlinePoint x="269" y="11"/>
- <OutlinePoint x="269" y="35"/>
- <OutlinePoint x="209" y="35"/>
+ <AndSplitDef ID="4" Name="" Height="24" Width="60"
+ IsLayoutable="true" IsComposite="false">
+ <CentrePoint x="428" y="18" />
+ <OutlinePoint x="398" y="6" />
+ <OutlinePoint x="458" y="6" />
+ <OutlinePoint x="458" y="30" />
+ <OutlinePoint x="398" y="30" />
<OutEdgeId>10</OutEdgeId>
<OutEdgeId>11</OutEdgeId>
+ <OutEdgeId>23</OutEdgeId>
<Properties>
- <KeyValuePair Key="RoutingScriptName" String=""/>
+ <KeyValuePair Key="RoutingScriptName" isAbstract="false"
+ String="" />
+ <KeyValuePair Key="RoutingScriptVersion" isAbstract="false"
+ String="" />
</Properties>
</AndSplitDef>
- <ActivitySlotDef ID="2" Name="CreateNewAgent_" Height="60" Width="130" IsLayoutable="true" IsComposite="false">
- <CentrePoint x="339" y="189"/>
- <OutlinePoint x="274" y="159"/>
- <OutlinePoint x="404" y="159"/>
- <OutlinePoint x="404" y="219"/>
- <OutlinePoint x="274" y="219"/>
+ <ActivitySlotDef ID="2" Name="CreateNewAgent_"
+ Height="60" Width="130" IsLayoutable="true" IsComposite="false">
+ <CentrePoint x="346" y="184" />
+ <OutlinePoint x="281" y="154" />
+ <OutlinePoint x="411" y="154" />
+ <OutlinePoint x="411" y="214" />
+ <OutlinePoint x="281" y="214" />
<InEdgeId>13</InEdgeId>
<OutEdgeId>15</OutEdgeId>
<Properties>
- <KeyValuePair Key="Prefill" Boolean="false"/>
- <KeyValuePair Key="Prefill Version" String="-1"/>
- <KeyValuePair Key="Name" String="CreateNewAgent"/>
- <KeyValuePair Key="Version" Integer="0"/>
+ <KeyValuePair Key="Prefill Version" isAbstract="false"
+ String="-1" />
+ <KeyValuePair Key="Name" isAbstract="false" String="CreateNewAgent" />
+ <KeyValuePair Key="Prefill" isAbstract="false"
+ Boolean="false" />
+ <KeyValuePair Key="Version" isAbstract="false"
+ Integer="0" />
</Properties>
<activityDef>CreateNewAgent</activityDef>
</ActivitySlotDef>
- <ActivitySlotDef ID="0" Name="CreateNewItem_" Height="60" Width="130" IsLayoutable="true" IsComposite="false">
- <CentrePoint x="165" y="190"/>
- <OutlinePoint x="100" y="160"/>
- <OutlinePoint x="230" y="160"/>
- <OutlinePoint x="230" y="220"/>
- <OutlinePoint x="100" y="220"/>
+ <ActivitySlotDef ID="0" Name="CreateNewItem_" Height="60"
+ Width="130" IsLayoutable="true" IsComposite="false">
+ <CentrePoint x="143" y="183" />
+ <OutlinePoint x="78" y="153" />
+ <OutlinePoint x="208" y="153" />
+ <OutlinePoint x="208" y="213" />
+ <OutlinePoint x="78" y="213" />
<InEdgeId>12</InEdgeId>
<OutEdgeId>14</OutEdgeId>
<Properties>
- <KeyValuePair Key="Prefill" Boolean="false"/>
- <KeyValuePair Key="Prefill Version" String="-1"/>
- <KeyValuePair Key="Name" String="CreateNewItem"/>
- <KeyValuePair Key="Version" Integer="0"/>
+ <KeyValuePair Key="Prefill Version" isAbstract="false"
+ String="-1" />
+ <KeyValuePair Key="Name" isAbstract="false" String="CreateNewItem" />
+ <KeyValuePair Key="Prefill" isAbstract="false"
+ Boolean="false" />
+ <KeyValuePair Key="Version" isAbstract="false"
+ Integer="0" />
</Properties>
<activityDef>CreateNewItem</activityDef>
</ActivitySlotDef>
+ <NextDef ID="28" OriginVertexId="25" TerminusVertexId="22">
+ <OriginPoint x="540" y="287" />
+ <TerminusPoint x="540" y="75" />
+ <Properties>
+ <KeyValuePair Key="Alias" isAbstract="false" String="true" />
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
+ </Properties>
+ </NextDef>
+ <NextDef ID="27" OriginVertexId="21" TerminusVertexId="25">
+ <OriginPoint x="670" y="181" />
+ <TerminusPoint x="540" y="287" />
+ <Properties />
+ </NextDef>
+ <NextDef ID="26" OriginVertexId="25" TerminusVertexId="9">
+ <OriginPoint x="540" y="287" />
+ <TerminusPoint x="427" y="355" />
+ <Properties>
+ <KeyValuePair Key="Alias" isAbstract="false" String="false" />
+ </Properties>
+ </NextDef>
+ <NextDef ID="24" OriginVertexId="22" TerminusVertexId="21">
+ <OriginPoint x="540" y="75" />
+ <TerminusPoint x="670" y="181" />
+ <Properties />
+ </NextDef>
+ <NextDef ID="23" OriginVertexId="4" TerminusVertexId="22">
+ <OriginPoint x="428" y="18" />
+ <TerminusPoint x="540" y="75" />
+ <Properties />
+ </NextDef>
<NextDef ID="19" OriginVertexId="8" TerminusVertexId="6">
- <OriginPoint x="448" y="271"/>
- <TerminusPoint x="431" y="73"/>
+ <OriginPoint x="428" y="284" />
+ <TerminusPoint x="428" y="73" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
- <KeyValuePair Key="Alias" String="true"/>
+ <KeyValuePair Key="Alias" isAbstract="false" String="true" />
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="18" OriginVertexId="7" TerminusVertexId="5">
- <OriginPoint x="36" y="284"/>
- <TerminusPoint x="51" y="78"/>
+ <OriginPoint x="239" y="284" />
+ <TerminusPoint x="239" y="78" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
- <KeyValuePair Key="Alias" String="true"/>
+ <KeyValuePair Key="Alias" isAbstract="false" String="true" />
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="17" OriginVertexId="7" TerminusVertexId="9">
- <OriginPoint x="36" y="284"/>
- <TerminusPoint x="244" y="378"/>
+ <OriginPoint x="239" y="284" />
+ <TerminusPoint x="427" y="355" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
- <KeyValuePair Key="Alias" String="false"/>
+ <KeyValuePair Key="Alias" isAbstract="false" String="false" />
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="16" OriginVertexId="8" TerminusVertexId="9">
- <OriginPoint x="448" y="271"/>
- <TerminusPoint x="244" y="378"/>
+ <OriginPoint x="428" y="284" />
+ <TerminusPoint x="427" y="355" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
- <KeyValuePair Key="Alias" String="false"/>
+ <KeyValuePair Key="Alias" isAbstract="false" String="false" />
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="15" OriginVertexId="2" TerminusVertexId="8">
- <OriginPoint x="339" y="189"/>
- <TerminusPoint x="448" y="271"/>
+ <OriginPoint x="346" y="184" />
+ <TerminusPoint x="428" y="284" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="14" OriginVertexId="0" TerminusVertexId="7">
- <OriginPoint x="165" y="190"/>
- <TerminusPoint x="36" y="284"/>
+ <OriginPoint x="143" y="183" />
+ <TerminusPoint x="239" y="284" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="13" OriginVertexId="6" TerminusVertexId="2">
- <OriginPoint x="431" y="73"/>
- <TerminusPoint x="339" y="189"/>
+ <OriginPoint x="428" y="73" />
+ <TerminusPoint x="346" y="184" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="12" OriginVertexId="5" TerminusVertexId="0">
- <OriginPoint x="51" y="78"/>
- <TerminusPoint x="165" y="190"/>
+ <OriginPoint x="239" y="78" />
+ <TerminusPoint x="143" y="183" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="11" OriginVertexId="4" TerminusVertexId="6">
- <OriginPoint x="239" y="23"/>
- <TerminusPoint x="431" y="73"/>
+ <OriginPoint x="428" y="18" />
+ <TerminusPoint x="428" y="73" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
<NextDef ID="10" OriginVertexId="4" TerminusVertexId="5">
- <OriginPoint x="239" y="23"/>
- <TerminusPoint x="51" y="78"/>
+ <OriginPoint x="428" y="18" />
+ <TerminusPoint x="239" y="78" />
<Properties>
- <KeyValuePair Key="Type" String="Straight"/>
+ <KeyValuePair Key="Type" isAbstract="false" String="Straight" />
</Properties>
</NextDef>
</GraphModelCastorData>
</childrenGraphModel>
<Properties>
- <KeyValuePair Key="Expected Time" Integer="0"/>
- <KeyValuePair Key="Repeatable" Boolean="false"/>
- <KeyValuePair Key="Has Timeout" Boolean="false"/>
- <KeyValuePair Key="Time Out Action" Integer="2"/>
- <KeyValuePair Key="Agent Name" String=""/>
- <KeyValuePair Key="Autostart" Boolean="true"/>
- <KeyValuePair Key="Expected Time Unit" Integer="3"/>
- <KeyValuePair Key="Maximum Time" Integer="0"/>
- <KeyValuePair Key="Mail Message" String=""/>
- <KeyValuePair Key="Mail event" String=""/>
- <KeyValuePair Key="Maximum Time Unit" Integer="3"/>
- <KeyValuePair Key="Description" String=""/>
- <KeyValuePair Key="SchemaVersion" String=""/>
- <KeyValuePair Key="Show time" Boolean="true"/>
- <KeyValuePair Key="Viewpoint" String=""/>
- <KeyValuePair Key="Agent Role" String=""/>
- <KeyValuePair Key="Timeout Activated" Boolean="false"/>
- <KeyValuePair Key="SchemaType" String=""/>
- <KeyValuePair Key="ScriptName" String=""/>
- <KeyValuePair Key="Ignorable" Boolean="false"/>
- <KeyValuePair Key="ScriptVersion" String=""/>
- <KeyValuePair Key="Skippable" Boolean="false"/>
+ <KeyValuePair Key="OutcomeInit" isAbstract="false"
+ String="" />
+ <KeyValuePair Key="ScriptVersion" isAbstract="false"
+ String="" />
+ <KeyValuePair Key="Mail Message" isAbstract="false"
+ String="" />
+ <KeyValuePair Key="Timeout Activated" isAbstract="false"
+ Boolean="false" />
+ <KeyValuePair Key="Breakpoint" isAbstract="false"
+ Boolean="false" />
+ <KeyValuePair Key="StateMachineVersion" isAbstract="false"
+ Integer="0" />
+ <KeyValuePair Key="Agent Role" isAbstract="false" String="" />
+ <KeyValuePair Key="Show time" isAbstract="false" Boolean="true" />
+ <KeyValuePair Key="Maximum Time" isAbstract="false"
+ Integer="0" />
+ <KeyValuePair Key="Time Out Action" isAbstract="false"
+ Integer="2" />
+ <KeyValuePair Key="Description" isAbstract="false"
+ String="" />
+ <KeyValuePair Key="Ignorable" isAbstract="false" Boolean="false" />
+ <KeyValuePair Key="Viewpoint" isAbstract="false" String="" />
+ <KeyValuePair Key="Agent Name" isAbstract="false" String="" />
+ <KeyValuePair Key="Skippable" isAbstract="false" Boolean="false" />
+ <KeyValuePair Key="SchemaVersion" isAbstract="false"
+ String="" />
+ <KeyValuePair Key="ScriptName" isAbstract="false" String="" />
+ <KeyValuePair Key="Mail event" isAbstract="false" String="" />
+ <KeyValuePair Key="Has Timeout" isAbstract="false"
+ Boolean="false" />
+ <KeyValuePair Key="Repeatable" isAbstract="false"
+ Boolean="false" />
+ <KeyValuePair Key="Autostart" isAbstract="false" Boolean="true" />
+ <KeyValuePair Key="Maximum Time Unit" isAbstract="false"
+ Integer="3" />
+ <KeyValuePair Key="StateMachineName" isAbstract="false"
+ String="Default" />
+ <KeyValuePair Key="Expected Time Unit" isAbstract="false"
+ Integer="3" />
+ <KeyValuePair Key="Expected Time" isAbstract="false"
+ Integer="0" />
+ <KeyValuePair Key="SchemaType" isAbstract="false" String="" />
</Properties>
-</CompositeActivityDef>
+</CompositeActivityDef> \ No newline at end of file
diff --git a/src/main/resources/boot/EA/CreateNewRole.xml b/src/main/resources/boot/EA/CreateNewRole.xml
new file mode 100644
index 0000000..295f60a
--- /dev/null
+++ b/src/main/resources/boot/EA/CreateNewRole.xml
@@ -0,0 +1,41 @@
+<!--
+
+ This file is part of the CRISTAL-iSE kernel.
+ Copyright (c) 2001-2014 The CRISTAL Consortium. All rights reserved.
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 3 of the License, or (at
+ your option) any later version.
+
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+ http://www.fsf.org/licensing/licenses/lgpl.html
+
+-->
+<ActivityDef ID="1" Name="CreateNewItem" Height="0" Width="0" IsLayoutable="false" IsComposite="false">
+ <Properties>
+ <KeyValuePair Key="Repeatable" Boolean="false"/>
+ <KeyValuePair Key="Agent Name" String=""/>
+ <KeyValuePair Key="Autostart" Boolean="true"/>
+ <KeyValuePair Key="Mail Message" String=""/>
+ <KeyValuePair Key="Mail event" String=""/>
+ <KeyValuePair Key="Description" String="Allows you to create a new Role without a description"/>
+ <KeyValuePair Key="SchemaVersion" String="0"/>
+ <KeyValuePair Key="Show time" Boolean="true"/>
+ <KeyValuePair Key="Viewpoint" String=""/>
+ <KeyValuePair Key="Agent Role" String="Admin"/>
+ <KeyValuePair Key="SchemaType" String="Role"/>
+ <KeyValuePair Key="ScriptName" String="ServerNewEntity"/>
+ <KeyValuePair Key="Ignorable" Boolean="false"/>
+ <KeyValuePair Key="ScriptVersion" String="0"/>
+ <KeyValuePair Key="Skippable" Boolean="false"/>
+ </Properties>
+</ActivityDef>
diff --git a/src/main/resources/boot/SC/ServerNewEntity.xml b/src/main/resources/boot/SC/ServerNewEntity.xml
index b6734a5..484195b 100644
--- a/src/main/resources/boot/SC/ServerNewEntity.xml
+++ b/src/main/resources/boot/SC/ServerNewEntity.xml
@@ -22,11 +22,33 @@
-->
<cristalscript>
- <output name="errors" type="org.cristalise.kernel.scripting.ErrorInfo"/>
+ <output name="errors" type="com.c2kernel.scripting.ErrorInfo"/>
<script language="javascript" name="ServerNewEntity"><![CDATA[
- var schema = job.getActPropString("SchemaType");
- var predef = schema.equals("Item")?"CreateNewItem":"CreateNewAgent";
+ importClass(Packages.com.c2kernel.utils.Logger);
+
+ var predef = "";
+ var schema = String(job.getActPropString("SchemaType"));
+
+ switch (schema) {
+ case "Item":
+ predef = "CreateNewItem";
+ break;
+
+ case "Agent":
+ predef = "CreateNewAgent";
+ break;
+
+ case "Role":
+ predef = "CreateNewRole";
+ break;
+
+ default:
+ throw "Unhandled schema '" + schema + "'";
+ }
+
+ Logger.debug( "agent.execute - prede step:'" + predef + "'" );
+
agent.execute(item, predef, job.getOutcomeString());
]]></script>
diff --git a/src/main/resources/boot/allbootitems.txt b/src/main/resources/boot/allbootitems.txt
index 64278d4..5b3f2da 100644
--- a/src/main/resources/boot/allbootitems.txt
+++ b/src/main/resources/boot/allbootitems.txt
@@ -16,6 +16,7 @@ OD/StateMachine
OD/ItemInitialization
EA/CreateNewItem
EA/CreateNewAgent
+EA/CreateNewRole
CA/NoWorkflow
CA/ServerItemWorkflow
SC/ServerNewEntity