Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

JBPM-3860 - avoid parser validation errors when simulation data are p…

…resent
  • Loading branch information...
commit 3a3a823c484898e7d0ee560033adf921a754b259 1 parent 1a214b2
Maciej Swiderski authored November 20, 2012
527  jbpm-bpmn2/src/main/resources/META-INF/drools.xsd
... ...
@@ -0,0 +1,527 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<schema targetNamespace="http://www.jboss.org/drools"
  3
+	elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
  4
+	xmlns:drools="http://www.jboss.org/drools">
  5
+
  6
+	<attribute name="packageName">
  7
+		<simpleType>
  8
+			<restriction base="string" />
  9
+		</simpleType>
  10
+	</attribute>
  11
+
  12
+	<attribute name="version">
  13
+		<simpleType>
  14
+			<restriction base="string" />
  15
+		</simpleType>
  16
+	</attribute>
  17
+
  18
+	<attribute name="ruleFlowGroup">
  19
+		<simpleType>
  20
+			<restriction base="string" />
  21
+		</simpleType>
  22
+	</attribute>
  23
+
  24
+	<attribute name="taskName">
  25
+		<simpleType>
  26
+			<restriction base="string" />
  27
+		</simpleType>
  28
+	</attribute>
  29
+
  30
+	<attribute name="priority">
  31
+		<simpleType>
  32
+			<restriction base="integer">
  33
+				<minInclusive value="1" />
  34
+			</restriction>
  35
+		</simpleType>
  36
+	</attribute>
  37
+
  38
+	<attributeGroup name="onxscriptattributes">
  39
+		<attribute name="scriptFormat" type="string" use="required" />
  40
+	</attributeGroup>
  41
+
  42
+	<attributeGroup name="importattributes">
  43
+		<attribute name="name" type="string" use="required" />
  44
+	</attributeGroup>
  45
+
  46
+	<attributeGroup name="globalattributes">
  47
+		<attribute name="identifier" type="string" use="required" />
  48
+		<attribute name="type" type="string" use="required" />
  49
+	</attributeGroup>
  50
+
  51
+	<element name="onEntry-script">
  52
+		<complexType>
  53
+			<sequence>
  54
+				<element name="script" minOccurs="1" maxOccurs="1" type="string" />
  55
+			</sequence>
  56
+			<attributeGroup ref="drools:onxscriptattributes" />
  57
+		</complexType>
  58
+	</element>
  59
+
  60
+	<element name="onExit-script">
  61
+		<complexType>
  62
+			<sequence>
  63
+				<element name="script" minOccurs="1" maxOccurs="1" type="string" />
  64
+			</sequence>
  65
+			<attributeGroup ref="drools:onxscriptattributes" />
  66
+		</complexType>
  67
+	</element>
  68
+
  69
+	<element name="import">
  70
+		<complexType>
  71
+			<attributeGroup ref="drools:importattributes" />
  72
+		</complexType>
  73
+	</element>
  74
+
  75
+	<element name="global">
  76
+		<complexType>
  77
+			<attributeGroup ref="drools:globalattributes" />
  78
+		</complexType>
  79
+	</element>
  80
+
  81
+	<element name="metadata">
  82
+		<complexType>
  83
+			<sequence>
  84
+				<element maxOccurs="unbounded" ref="drools:metaentry" />
  85
+			</sequence>
  86
+		</complexType>
  87
+	</element>
  88
+
  89
+	<element name="metaentry">
  90
+		<complexType>
  91
+			<sequence>
  92
+				<element name="name" type="string" minOccurs="1" maxOccurs="1" />
  93
+				<element name="value" type="string" minOccurs="1" maxOccurs="1" />
  94
+			</sequence>
  95
+		</complexType>
  96
+	</element>
  97
+
  98
+	<!-- START BPS v 0.4 -->
  99
+	<element name="ProcessAnalysisData">
  100
+		<complexType>
  101
+			<sequence maxOccurs="unbounded">
  102
+				<element name="Scenario" type="drools:Scenario" />
  103
+			</sequence>
  104
+		</complexType>
  105
+	</element>
  106
+	<complexType name="Scenario">
  107
+		<sequence minOccurs="0">
  108
+			<element name="ScenarioParameters" minOccurs="0" type="drools:ScenarioParameters" >
  109
+            </element>
  110
+            <element name="ElementParameters" minOccurs="0" maxOccurs="unbounded" type="drools:ElementParameters">
  111
+            </element>
  112
+			<element name="Calendar" type="drools:Calendar" minOccurs="0"
  113
+				maxOccurs="unbounded" />
  114
+			<element name="VendorExtension" type="drools:VendorExtension"
  115
+				minOccurs="0" maxOccurs="unbounded" />
  116
+		</sequence>
  117
+		<attribute name="id" type="ID" use="required" />
  118
+		<attribute name="name" type="string" />
  119
+		<attribute name="description" type="string" />
  120
+		<attribute name="author" type="string" />
  121
+		<attribute name="vendor" type="string" />
  122
+		<attribute name="version" type="string" />
  123
+		<attribute name="inherits" type="IDREF" />
  124
+		<attribute name="result" type="IDREF" />
  125
+		<attribute name="created" type="dateTime" />
  126
+		<attribute name="modified" type="dateTime" />
  127
+	</complexType>
  128
+	<complexType name="ScenarioParameters">
  129
+		<sequence minOccurs="0">
  130
+			<element name="Start" type="drools:Parameter" minOccurs="0" />
  131
+			<element name="Duration" type="drools:Parameter" minOccurs="0" />
  132
+			<element name="PropertyParameters" type="drools:PropertyParameters"
  133
+				minOccurs="0" />
  134
+		</sequence>
  135
+		<attribute name="replication" type="int" />
  136
+		<attribute name="seed" type="long" />
  137
+		<attribute name="baseTimeUnit" type="drools:TimeUnit" />
  138
+		<attribute name="baseCurrencyUnit" type="string" />
  139
+	</complexType>
  140
+	<complexType name="VendorExtension">
  141
+		<sequence minOccurs="0">
  142
+			<any namespace="##other" />
  143
+		</sequence>
  144
+		<attribute name="name" type="string" use="required" />
  145
+		<anyAttribute namespace="##other" />
  146
+	</complexType>
  147
+	<complexType name="ElementParameters">
  148
+		<sequence minOccurs="0">
  149
+			<element name="TimeParameters" type="drools:TimeParameters"
  150
+				minOccurs="0" />
  151
+			<element name="ControlParameters" type="drools:ControlParameters"
  152
+				minOccurs="0" />
  153
+			<element name="ResourceParameters" type="drools:ResourceParameters"
  154
+				minOccurs="0" />
  155
+			<element name="PriorityParameters" type="drools:PriorityParameters"
  156
+				minOccurs="0" />
  157
+			<element name="CostParameters" type="drools:CostParameters"
  158
+				minOccurs="0" />
  159
+			<element name="PropertyParameters" type="drools:PropertyParameters"
  160
+				minOccurs="0" />
  161
+			<element name="VendorExtension" type="drools:VendorExtension"
  162
+				minOccurs="0" maxOccurs="unbounded" />
  163
+		</sequence>
  164
+		<attribute name="id" type="ID" />
  165
+		<attribute name="elementId" type="string" />
  166
+	</complexType>
  167
+	<complexType name="TimeParameters">
  168
+		<sequence minOccurs="0">
  169
+			<element name="TransferTime" type="drools:Parameter"
  170
+				minOccurs="0" />
  171
+			<element name="QueueTime" type="drools:Parameter" minOccurs="0" />
  172
+			<element name="WaitTime" type="drools:Parameter" minOccurs="0" />
  173
+			<element name="SetUpTime" type="drools:Parameter" minOccurs="0" />
  174
+			<element name="ProcessingTime" type="drools:Parameter"
  175
+				minOccurs="0" />
  176
+			<element name="ValidationTime" type="drools:Parameter"
  177
+				minOccurs="0" />
  178
+			<element name="ReworkTime" type="drools:Parameter" minOccurs="0" />
  179
+			<element name="TimeUnit" type="drools:TimeUnit" />
  180
+		</sequence>
  181
+	</complexType>
  182
+	<complexType name="ControlParameters">
  183
+		<sequence minOccurs="0">
  184
+			<element name="Probability" type="drools:Parameter"
  185
+				minOccurs="0" />
  186
+			<element name="InterTriggerTimer" type="drools:Parameter"
  187
+				minOccurs="0" />
  188
+			<element name="MaxTriggerCount" type="drools:Parameter"
  189
+				minOccurs="0" />
  190
+		</sequence>
  191
+	</complexType>
  192
+	<complexType name="CostParameters">
  193
+		<sequence minOccurs="0">
  194
+			<element name="FixedCost" type="drools:Parameter" minOccurs="0" />
  195
+			<element name="UnitCost" type="drools:Parameter" minOccurs="0" />
  196
+			<element name="CurrencyUnit" type="string" minOccurs="0" />
  197
+		</sequence>
  198
+	</complexType>
  199
+	<complexType name="ResourceParameters">
  200
+		<sequence minOccurs="0">
  201
+			<element name="Selection" type="drools:Parameter" minOccurs="0" />
  202
+			<element name="Availability" type="drools:Parameter"
  203
+				minOccurs="0" />
  204
+			<element name="Quantity" type="drools:Parameter" minOccurs="0" />
  205
+			<element name="Workinghours" type="drools:Parameter"
  206
+				minOccurs="0" />
  207
+			<element name="Role" type="drools:Parameter" minOccurs="0"
  208
+				maxOccurs="unbounded" />
  209
+		</sequence>
  210
+	</complexType>
  211
+	<complexType name="PriorityParameters">
  212
+		<sequence minOccurs="0">
  213
+			<element name="Interruptible" type="drools:Parameter"
  214
+				minOccurs="0" />
  215
+			<element name="Priority" type="drools:Parameter" minOccurs="0" />
  216
+		</sequence>
  217
+	</complexType>
  218
+	<complexType name="PropertyParameters">
  219
+		<sequence minOccurs="0">
  220
+			<element name="Property" minOccurs="0" maxOccurs="unbounded">
  221
+				<complexType>
  222
+					<complexContent>
  223
+						<extension base="drools:Parameter">
  224
+							<attribute name="name" type="string" use="required" />
  225
+						</extension>
  226
+					</complexContent>
  227
+				</complexType>
  228
+			</element>
  229
+		</sequence>
  230
+	</complexType>
  231
+	<complexType name="Parameter">
  232
+		<sequence minOccurs="0">
  233
+			<element name="ResultRequest" type="drools:ResultType"
  234
+				minOccurs="0" maxOccurs="unbounded" />
  235
+			<element ref="drools:ParameterValue" minOccurs="0" maxOccurs="unbounded" />
  236
+		</sequence>
  237
+		<attribute name="kpi" type="boolean" default="false" />
  238
+		<attribute name="sla" type="boolean" default="false" />
  239
+	</complexType>
  240
+	<complexType name="Calendar">
  241
+		<simpleContent>
  242
+			<extension base="string">
  243
+				<attribute name="id" type="ID" />
  244
+				<attribute name="name" type="string" />
  245
+			</extension>
  246
+		</simpleContent>
  247
+	</complexType>
  248
+	<element name="ParameterValue" type="drools:ParameterValue" />
  249
+	<complexType name="ParameterValue">
  250
+		<attribute name="validFor" type="IDREF" />
  251
+		<attribute name="instance" type="string" />
  252
+		<attribute name="result" type="drools:ResultType" />
  253
+	</complexType>
  254
+	<element name="EnumParameter" substitutionGroup="drools:ParameterValue">
  255
+		<complexType>
  256
+			<complexContent>
  257
+				<extension base="drools:ParameterValue">
  258
+					<sequence maxOccurs="unbounded">
  259
+						<annotation>
  260
+							<documentation>Even if here we reference a list of Parameter
  261
+								Values, only Constant Parameters are valid here. There is just
  262
+								no real way of expressing it in xsd.
  263
+							</documentation>
  264
+						</annotation>
  265
+						<element ref="drools:ParameterValue" />
  266
+					</sequence>
  267
+				</extension>
  268
+			</complexContent>
  269
+		</complexType>
  270
+	</element>
  271
+	<element name="ExpressionParameter" substitutionGroup="drools:ParameterValue">
  272
+		<complexType>
  273
+			<complexContent>
  274
+				<extension base="drools:ParameterValue">
  275
+					<attribute name="value" type="string" />
  276
+				</extension>
  277
+			</complexContent>
  278
+		</complexType>
  279
+	</element>
  280
+	<complexType name="ConstantParameter">
  281
+		<complexContent>
  282
+			<extension base="drools:ParameterValue" />
  283
+		</complexContent>
  284
+	</complexType>
  285
+	<element name="StringParameter" substitutionGroup="drools:ParameterValue">
  286
+		<complexType>
  287
+			<complexContent>
  288
+				<extension base="drools:ConstantParameter">
  289
+					<attribute name="value" type="string" />
  290
+				</extension>
  291
+			</complexContent>
  292
+		</complexType>
  293
+	</element>
  294
+	<element name="NumericParameter" substitutionGroup="drools:ParameterValue">
  295
+		<complexType>
  296
+			<complexContent>
  297
+				<extension base="drools:ConstantParameter">
  298
+					<attribute name="value" type="long" />
  299
+				</extension>
  300
+			</complexContent>
  301
+		</complexType>
  302
+	</element>
  303
+	<element name="DecimalParameter" substitutionGroup="drools:ParameterValue">
  304
+		<complexType>
  305
+			<complexContent>
  306
+				<extension base="drools:ConstantParameter">
  307
+					<attribute name="value" type="decimal" />
  308
+				</extension>
  309
+			</complexContent>
  310
+		</complexType>
  311
+	</element>
  312
+	<element name="FloatingParameter" substitutionGroup="drools:ParameterValue">
  313
+		<complexType>
  314
+			<complexContent>
  315
+				<extension base="drools:ConstantParameter">
  316
+					<attribute name="value" type="double" />
  317
+				</extension>
  318
+			</complexContent>
  319
+		</complexType>
  320
+	</element>
  321
+	<element name="BooleanParameter" substitutionGroup="drools:ParameterValue">
  322
+		<complexType>
  323
+			<complexContent>
  324
+				<extension base="drools:ConstantParameter">
  325
+					<attribute name="value" type="boolean" />
  326
+				</extension>
  327
+			</complexContent>
  328
+		</complexType>
  329
+	</element>
  330
+	<element name="DurationParameter" substitutionGroup="drools:ParameterValue">
  331
+		<complexType>
  332
+			<complexContent>
  333
+				<extension base="drools:ConstantParameter">
  334
+					<attribute name="value" type="duration" />
  335
+				</extension>
  336
+			</complexContent>
  337
+		</complexType>
  338
+	</element>
  339
+	<element name="DateTimeParameter" substitutionGroup="drools:ParameterValue">
  340
+		<complexType>
  341
+			<complexContent>
  342
+				<extension base="drools:ConstantParameter">
  343
+					<attribute name="value" type="dateTime" />
  344
+				</extension>
  345
+			</complexContent>
  346
+		</complexType>
  347
+	</element>
  348
+	<complexType name="DistributionParameter">
  349
+		<complexContent>
  350
+			<extension base="drools:ParameterValue">
  351
+				<attribute name="discrete" type="boolean" default="false" />
  352
+			</extension>
  353
+		</complexContent>
  354
+	</complexType>
  355
+	<element name="LogNormalDistribution" substitutionGroup="drools:ParameterValue">
  356
+		<complexType>
  357
+			<complexContent>
  358
+				<extension base="drools:DistributionParameter">
  359
+					<attribute name="mean" type="double" />
  360
+					<attribute name="standardDeviation" type="double" />
  361
+				</extension>
  362
+			</complexContent>
  363
+		</complexType>
  364
+	</element>
  365
+	<element name="PoissonDistribution" substitutionGroup="drools:ParameterValue">
  366
+		<complexType>
  367
+			<complexContent>
  368
+				<extension base="drools:DistributionParameter">
  369
+					<attribute name="mean" type="double" />
  370
+				</extension>
  371
+			</complexContent>
  372
+		</complexType>
  373
+	</element>
  374
+	<element name="WeibullDistribution" substitutionGroup="drools:ParameterValue">
  375
+		<complexType>
  376
+			<complexContent>
  377
+				<extension base="drools:DistributionParameter">
  378
+					<attribute name="shape" type="double" />
  379
+					<attribute name="scale" type="double" />
  380
+				</extension>
  381
+			</complexContent>
  382
+		</complexType>
  383
+	</element>
  384
+	<element name="UniformDistribution" substitutionGroup="drools:ParameterValue">
  385
+		<complexType>
  386
+			<complexContent>
  387
+				<extension base="drools:DistributionParameter">
  388
+					<attribute name="min" type="double" />
  389
+					<attribute name="max" type="double" />
  390
+				</extension>
  391
+			</complexContent>
  392
+		</complexType>
  393
+	</element>
  394
+	<element name="RandomDistribution" substitutionGroup="drools:ParameterValue">
  395
+		<complexType>
  396
+			<complexContent>
  397
+				<extension base="drools:DistributionParameter">
  398
+					<attribute name="min" type="double"/>
  399
+					<attribute name="max" type="double"/>
  400
+				</extension>
  401
+			</complexContent>
  402
+		</complexType>
  403
+	</element>
  404
+	<element name="NormalDistribution" substitutionGroup="drools:ParameterValue">
  405
+		<complexType>
  406
+			<complexContent>
  407
+				<extension base="drools:DistributionParameter">
  408
+					<attribute name="mean" type="double" />
  409
+					<attribute name="standardDeviation" type="double" />
  410
+				</extension>
  411
+			</complexContent>
  412
+		</complexType>
  413
+	</element>
  414
+	<element name="BetaDistribution" substitutionGroup="drools:ParameterValue">
  415
+		<complexType>
  416
+			<complexContent>
  417
+				<extension base="drools:DistributionParameter">
  418
+					<attribute name="shape" type="double" />
  419
+					<attribute name="scale" type="double" />
  420
+				</extension>
  421
+			</complexContent>
  422
+		</complexType>
  423
+	</element>
  424
+	<element name="NegativeExponentialDistribution"
  425
+		substitutionGroup="drools:ParameterValue">
  426
+		<complexType>
  427
+			<complexContent>
  428
+				<extension base="drools:DistributionParameter">
  429
+					<attribute name="mean" type="double" />
  430
+				</extension>
  431
+			</complexContent>
  432
+		</complexType>
  433
+	</element>
  434
+	<element name="BinomialDistribution" substitutionGroup="drools:ParameterValue">
  435
+		<complexType>
  436
+			<complexContent>
  437
+				<extension base="drools:DistributionParameter">
  438
+					<attribute name="probability" type="double" />
  439
+					<attribute name="trials" type="long" />
  440
+				</extension>
  441
+			</complexContent>
  442
+		</complexType>
  443
+	</element>
  444
+	<element name="TruncatedNormalDistribution" substitutionGroup="drools:ParameterValue">
  445
+		<complexType>
  446
+			<complexContent>
  447
+				<extension base="drools:DistributionParameter">
  448
+					<attribute name="mean" type="double" />
  449
+					<attribute name="standardDeviation" type="double" />
  450
+					<attribute name="min" type="double" />
  451
+					<attribute name="max" type="double" />
  452
+				</extension>
  453
+			</complexContent>
  454
+		</complexType>
  455
+	</element>
  456
+	<element name="ErlangDistribution" substitutionGroup="drools:ParameterValue">
  457
+		<complexType>
  458
+			<complexContent>
  459
+				<extension base="drools:DistributionParameter">
  460
+					<attribute name="mean" type="double" />
  461
+					<attribute name="k" type="double" />
  462
+				</extension>
  463
+			</complexContent>
  464
+		</complexType>
  465
+	</element>
  466
+	<element name="TriangularDistribution" substitutionGroup="drools:ParameterValue">
  467
+		<complexType>
  468
+			<complexContent>
  469
+				<extension base="drools:DistributionParameter">
  470
+					<attribute name="mostLikely" type="double" />
  471
+					<attribute name="min" type="double" />
  472
+					<attribute name="max" type="double" />
  473
+				</extension>
  474
+			</complexContent>
  475
+		</complexType>
  476
+	</element>
  477
+	<element name="GammaDistribution" substitutionGroup="drools:ParameterValue">
  478
+		<complexType>
  479
+			<complexContent>
  480
+				<extension base="drools:DistributionParameter">
  481
+					<attribute name="shape" type="double" />
  482
+					<attribute name="scale" type="double" />
  483
+				</extension>
  484
+			</complexContent>
  485
+		</complexType>
  486
+	</element>
  487
+	<element name="UserDistribution" substitutionGroup="drools:ParameterValue">
  488
+		<complexType>
  489
+			<complexContent>
  490
+				<extension base="drools:DistributionParameter">
  491
+					<sequence maxOccurs="unbounded">
  492
+						<element ref="drools:UserDistributionDataPoint" />
  493
+					</sequence>
  494
+				</extension>
  495
+			</complexContent>
  496
+		</complexType>
  497
+	</element>
  498
+	<element name="UserDistributionDataPoint">
  499
+		<complexType>
  500
+			<sequence>
  501
+				<element ref="drools:ParameterValue" />
  502
+			</sequence>
  503
+			<attribute name="probability" type="float" />
  504
+		</complexType>
  505
+	</element>
  506
+	<simpleType name="TimeUnit">
  507
+		<restriction base="string">
  508
+			<enumeration value="ms" />
  509
+			<enumeration value="s" />
  510
+			<enumeration value="min" />
  511
+			<enumeration value="hour" />
  512
+			<enumeration value="day" />
  513
+			<enumeration value="year" />
  514
+		</restriction>
  515
+	</simpleType>
  516
+	<simpleType name="ResultType">
  517
+		<restriction base="string">
  518
+			<enumeration value="enum" />
  519
+			<enumeration value="min" />
  520
+			<enumeration value="max" />
  521
+			<enumeration value="mean" />
  522
+			<enumeration value="count" />
  523
+			<enumeration value="sum" />
  524
+		</restriction>
  525
+	</simpleType>
  526
+	<!-- END BPS v. 0.4 -->
  527
+</schema>
16  jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/SimpleBPMNProcessTest.java
@@ -3017,6 +3017,22 @@ public void testUserTaskWithBooleanOutput() throws Exception {
3017 3017
         ksession.getWorkItemManager().completeWorkItem(workItem.getId(), output);
3018 3018
         assertProcessInstanceCompleted(processInstance.getId(), ksession);
3019 3019
     }
  3020
+    
  3021
+    public void testUserTaskWithSimData() throws Exception {
  3022
+        KnowledgeBase kbase = createKnowledgeBase("BPMN2-UserTaskWithSimulationMetaData.bpmn2");
  3023
+        StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
  3024
+        TestWorkItemHandler workItemHandler = new TestWorkItemHandler();
  3025
+        ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
  3026
+                workItemHandler);
  3027
+        ProcessInstance processInstance = ksession.startProcess("UserTask");
  3028
+        assertTrue(processInstance.getState() == ProcessInstance.STATE_ACTIVE);
  3029
+        ksession = restoreSession(ksession, true);
  3030
+        WorkItem workItem = workItemHandler.getWorkItem();
  3031
+        assertNotNull(workItem);
  3032
+        assertEquals("john", workItem.getParameter("ActorId"));
  3033
+        ksession.getWorkItemManager().completeWorkItem(workItem.getId(), null);
  3034
+        assertProcessInstanceCompleted(processInstance.getId(), ksession);
  3035
+    }
3020 3036
 
3021 3037
 	private KnowledgeBase createKnowledgeBase(String process) throws Exception {
3022 3038
 		KnowledgeBaseFactory
103  jbpm-bpmn2/src/test/resources/BPMN2-UserTaskWithSimulationMetaData.bpmn2
... ...
@@ -0,0 +1,103 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3
+ xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" 
  4
+ xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
  5
+ xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" 
  6
+ xmlns:di="http://www.omg.org/spec/DD/20100524/DI" 
  7
+ xmlns:drools="http://www.jboss.org/drools" id="_TEnqoPeBEeGKWqHRrzBUaw" 
  8
+ xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd
  9
+ http://www.jboss.org/drools drools.xsd" 
  10
+ expressionLanguage="http://www.mvel.org/2.0" 
  11
+ targetNamespace="http://www.omg.org/bpmn20" 
  12
+ typeLanguage="http://www.java.com/javaTypes">
  13
+  <bpmn2:process id="UserTask" drools:packageName="defaultPackage" name="User Task" isExecutable="true">
  14
+    <bpmn2:startEvent id="_69FD4992-429F-4AD0-B126-85435C2D1A45" drools:bgcolor="#f5deb3" drools:selectable="true" name="StartProcess">
  15
+      <bpmn2:outgoing>_D9988BD7-9459-49E4-9C20-7201B47127B9</bpmn2:outgoing>
  16
+    </bpmn2:startEvent>
  17
+    <bpmn2:userTask id="_2B5B707D-3458-475C-943D-74F20B13AF20" drools:selectable="true" drools:scriptFormat="http://www.java.com/java" name="Hello">
  18
+      <bpmn2:incoming>_D9988BD7-9459-49E4-9C20-7201B47127B9</bpmn2:incoming>
  19
+      <bpmn2:outgoing>_E97DF689-7C76-4DDE-8D08-DBE4C33553C2</bpmn2:outgoing>
  20
+      <bpmn2:potentialOwner id="_TEnqofeBEeGKWqHRrzBUaw">
  21
+        <bpmn2:resourceAssignmentExpression id="_TEnqoveBEeGKWqHRrzBUaw">
  22
+          <bpmn2:formalExpression id="_TEoRsPeBEeGKWqHRrzBUaw">john</bpmn2:formalExpression>
  23
+        </bpmn2:resourceAssignmentExpression>
  24
+      </bpmn2:potentialOwner>
  25
+    </bpmn2:userTask>
  26
+    <bpmn2:endEvent id="_84B9E4C8-FC83-4130-8BD4-9038CBADCBAE" drools:bgcolor="#f5deb3" drools:selectable="true" name="EndProcess">
  27
+      <bpmn2:incoming>_E97DF689-7C76-4DDE-8D08-DBE4C33553C2</bpmn2:incoming>
  28
+      <bpmn2:terminateEventDefinition id="_TEoRsfeBEeGKWqHRrzBUaw"/>
  29
+    </bpmn2:endEvent>
  30
+    <bpmn2:sequenceFlow id="_D9988BD7-9459-49E4-9C20-7201B47127B9" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_69FD4992-429F-4AD0-B126-85435C2D1A45" targetRef="_2B5B707D-3458-475C-943D-74F20B13AF20"/>
  31
+    <bpmn2:sequenceFlow id="_E97DF689-7C76-4DDE-8D08-DBE4C33553C2" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_2B5B707D-3458-475C-943D-74F20B13AF20" targetRef="_84B9E4C8-FC83-4130-8BD4-9038CBADCBAE"/>
  32
+  </bpmn2:process>
  33
+  <bpmndi:BPMNDiagram id="_TEoRsveBEeGKWqHRrzBUaw">
  34
+    <bpmndi:BPMNPlane id="_TEoRs_eBEeGKWqHRrzBUaw" bpmnElement="UserTask">
  35
+      <bpmndi:BPMNShape id="_TEoRtPeBEeGKWqHRrzBUaw" bpmnElement="_69FD4992-429F-4AD0-B126-85435C2D1A45">
  36
+        <dc:Bounds height="30.0" width="30.0" x="375.0" y="234.0"/>
  37
+      </bpmndi:BPMNShape>
  38
+      <bpmndi:BPMNShape id="_TEoRtfeBEeGKWqHRrzBUaw" bpmnElement="_2B5B707D-3458-475C-943D-74F20B13AF20">
  39
+        <dc:Bounds height="48.0" width="100.0" x="435.0" y="225.0"/>
  40
+      </bpmndi:BPMNShape>
  41
+      <bpmndi:BPMNShape id="_TEoRtveBEeGKWqHRrzBUaw" bpmnElement="_84B9E4C8-FC83-4130-8BD4-9038CBADCBAE">
  42
+        <dc:Bounds height="28.0" width="28.0" x="587.0" y="234.0"/>
  43
+      </bpmndi:BPMNShape>
  44
+      <bpmndi:BPMNEdge id="_TEoRt_eBEeGKWqHRrzBUaw" bpmnElement="_D9988BD7-9459-49E4-9C20-7201B47127B9">
  45
+        <di:waypoint xsi:type="dc:Point" x="390.0" y="249.0"/>
  46
+        <di:waypoint xsi:type="dc:Point" x="485.0" y="249.0"/>
  47
+      </bpmndi:BPMNEdge>
  48
+      <bpmndi:BPMNEdge id="_TEoRuPeBEeGKWqHRrzBUaw" bpmnElement="_E97DF689-7C76-4DDE-8D08-DBE4C33553C2">
  49
+        <di:waypoint xsi:type="dc:Point" x="485.0" y="249.0"/>
  50
+        <di:waypoint xsi:type="dc:Point" x="561.0" y="249.0"/>
  51
+        <di:waypoint xsi:type="dc:Point" x="561.0" y="248.0"/>
  52
+        <di:waypoint xsi:type="dc:Point" x="601.0" y="248.0"/>
  53
+      </bpmndi:BPMNEdge>
  54
+    </bpmndi:BPMNPlane>
  55
+  </bpmndi:BPMNDiagram>
  56
+  <bpmn2:relationship id="_TEoRufeBEeGKWqHRrzBUaw" type="">
  57
+    <bpmn2:extensionElements>
  58
+      <drools:ProcessAnalysisData>
  59
+        <drools:Scenario xsi:type="drools:Scenario" id="default" name="Simulationscenario">
  60
+          <drools:ScenarioParameters xsi:type="drools:ScenarioParameters" baseCurrencyUnit="USD" baseTimeUnit="min"/>
  61
+          <drools:ElementParameters xsi:type="drools:ElementParameters" elementId="_D9988BD7-9459-49E4-9C20-7201B47127B9" id="_TEoRuveBEeGKWqHRrzBUaw">
  62
+            <drools:ControlParameters xsi:type="drools:ControlParameters">
  63
+              <drools:Probability xsi:type="drools:Parameter">
  64
+                <drools:FloatingParameter value="100.0"/>
  65
+              </drools:Probability>
  66
+            </drools:ControlParameters>
  67
+          </drools:ElementParameters>
  68
+          <drools:ElementParameters xsi:type="drools:ElementParameters" elementId="_2B5B707D-3458-475C-943D-74F20B13AF20" id="_TEoRu_eBEeGKWqHRrzBUaw">
  69
+            <drools:TimeParameters xsi:type="drools:TimeParameters">
  70
+              <drools:ProcessingTime xsi:type="drools:Parameter">
  71
+                <drools:NormalDistribution mean="21.0" standardDeviation="12.0"/>
  72
+              </drools:ProcessingTime>
  73
+              <drools:TimeUnit>min</drools:TimeUnit>
  74
+            </drools:TimeParameters>
  75
+            <drools:ResourceParameters xsi:type="drools:ResourceParameters">
  76
+              <drools:Quantity xsi:type="drools:Parameter">
  77
+                <drools:FloatingParameter value="3.0"/>
  78
+              </drools:Quantity>
  79
+              <drools:Workinghours xsi:type="drools:Parameter">
  80
+                <drools:FloatingParameter value="1.0"/>
  81
+              </drools:Workinghours>
  82
+            </drools:ResourceParameters>
  83
+            <drools:CostParameters xsi:type="drools:CostParameters">
  84
+              <drools:UnitCost xsi:type="drools:Parameter">
  85
+                <drools:DecimalParameter value="45"/>
  86
+              </drools:UnitCost>
  87
+              <drools:CurrencyUnit>USD</drools:CurrencyUnit>
  88
+            </drools:CostParameters>
  89
+          </drools:ElementParameters>
  90
+          <drools:ElementParameters xsi:type="drools:ElementParameters" elementId="_E97DF689-7C76-4DDE-8D08-DBE4C33553C2" id="_TEoRvPeBEeGKWqHRrzBUaw">
  91
+            <drools:ControlParameters xsi:type="drools:ControlParameters">
  92
+              <drools:Probability xsi:type="drools:Parameter">
  93
+                <drools:FloatingParameter value="100.0"/>
  94
+              </drools:Probability>
  95
+            </drools:ControlParameters>
  96
+          </drools:ElementParameters>
  97
+        </drools:Scenario>
  98
+      </drools:ProcessAnalysisData>
  99
+    </bpmn2:extensionElements>
  100
+    <bpmn2:source>_TEnqoPeBEeGKWqHRrzBUaw</bpmn2:source>
  101
+    <bpmn2:target>_TEnqoPeBEeGKWqHRrzBUaw</bpmn2:target>
  102
+  </bpmn2:relationship>
  103
+</bpmn2:definitions>

0 notes on commit 3a3a823

Please sign in to comment.
Something went wrong with that request. Please try again.