pefernan commented on code in PR #7207:
URL: https://github.com/apache/incubator-kie/pull/7207#discussion_r4358042805


##########
kogito-codegen-modules/kogito-codegen-processes/src/test/resources/workitem/DuplicateWorkItemNamesProcess.bpmn:
##########
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"; 
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; 
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"; 
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"; 
xmlns:drools="http://www.jboss.org/drools"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
namespace="https://kie.org/bpmn/_DC70D49C-4B8D-4E91-85FA-C89B5CFAF605"; 
id="_4B6CEF8E-1270-4C23-AFDD-56DD2AA72E0C" 
name="BPMN_CBBEBDE3-6A70-4314-BDD0-43D6F31281E4" 
targetNamespace="https://kie.apache.org/bpmn/_D0BA6BD5-BCA0-4352-B765-F57DB6DB8AC6";>
+  <itemDefinition id="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" 
structureRef="String" />
+  <process id="DuplicateWorkItemsProcess" isExecutable="true" 
drools:adHoc="false" name="DuplicateWorkItemsProcess">
+    <property id="_6C983473-2837-4B65-813C-17B18856D462" name="variable1" 
itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+    <property id="_17709A14-3E82-4C74-A896-76D546EC14BC" name="variable2" 
itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+    <laneSet id="_DF7F2AAF-658F-41CA-96CC-742D8386B531" />
+    <startEvent id="_BAEF3362-8DF0-4903-9B6A-7FC004E26795">
+      <outgoing>_CA7E7310-8880-481E-A467-5B0907F98A92</outgoing>
+    </startEvent>
+    <endEvent id="_C0244037-0148-4CAA-AD3B-0A944797C8CA">
+      <incoming>_9F7BE4AF-3215-4C27-A69D-D1E27CC67C9B</incoming>
+    </endEvent>
+    <task id="_8F9A6C6D-D5BF-4EB9-9C4B-8BED8533CBC2" name="Rest Call 1" 
drools:taskName="Rest">
+      <incoming>_CA7E7310-8880-481E-A467-5B0907F98A92</incoming>
+      <outgoing>_A0036A24-14BB-4BE5-96CC-B858E7274DA6</outgoing>
+      <ioSpecification id="_21D682D6-B5C3-46E6-970B-DDB0459E7917">
+        <dataInput id="_936D3034-3F80-4FD1-9442-CCEDF8B75690" name="Method" 
drools:dtype="String" itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+        <dataInput id="_DAEE1BE6-1224-43CD-B187-D61D602DECDC" name="Url" 
drools:dtype="String" itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+        <dataInput id="_3B92FD35-57E6-45C8-A882-6A612E38FA6C" 
name="AccessTokenAcquisitionStrategy" drools:dtype="String" 
itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+        <dataInput id="_8D8CED5F-A32F-4106-94A1-D52FC6FE84C2" 
name="HEADER_content-type" drools:dtype="String" 
itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+        <dataInput id="_6445CE16-C641-44BC-9BB5-1361760A5CE0" name="variable1" 
drools:dtype="String" itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+        <dataOutput name="Result" id="_BB1EE798-08EF-4DF6-A8E4-E6016C4A2293" 
drools:dtype="String" itemSubjectRef="_CC051A27-EDEA-474B-8716-FF16FBB6AAE1" />
+        <inputSet id="_233CCB02-8B77-4C8F-9A15-F7AE0E32B893">
+          <dataInputRefs>_936D3034-3F80-4FD1-9442-CCEDF8B75690</dataInputRefs>
+          <dataInputRefs>_DAEE1BE6-1224-43CD-B187-D61D602DECDC</dataInputRefs>
+          <dataInputRefs>_3B92FD35-57E6-45C8-A882-6A612E38FA6C</dataInputRefs>
+          <dataInputRefs>_8D8CED5F-A32F-4106-94A1-D52FC6FE84C2</dataInputRefs>
+          <dataInputRefs>_6445CE16-C641-44BC-9BB5-1361760A5CE0</dataInputRefs>
+        </inputSet>
+        <outputSet id="_68D0BA7E-7200-4EAD-BF06-566B737162B8">
+          
<dataOutputRefs>_BB1EE798-08EF-4DF6-A8E4-E6016C4A2293</dataOutputRefs>
+        </outputSet>
+      </ioSpecification>
+      <dataInputAssociation id="_D17FBD4E-CB18-4F38-8CCA-15E2D83E6FB8">
+        <targetRef>_936D3034-3F80-4FD1-9442-CCEDF8B75690</targetRef>
+        <assignment id="_CAB4B478-2AF5-4873-8227-7F9401CB80D0">
+          <from id="_4BAF1BA4-55FA-4AC2-8D5F-097F2B772CC4" 
xsi:type="tFormalExpression">GET</from>
+          <to 
id="_80CE2A10-6836-45C7-B610-ABFFE4B8687E">_936D3034-3F80-4FD1-9442-CCEDF8B75690</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation id="_0C238375-EF5B-4EEA-98AF-8BC12937ED66">
+        <targetRef>_DAEE1BE6-1224-43CD-B187-D61D602DECDC</targetRef>
+        <assignment id="_2111BD90-A315-44FD-91BF-3285E774C71D">
+          <from id="_532E1F85-376F-4720-850A-B154149C6B6C" 
xsi:type="tFormalExpression">http://localhost:8080/test</from>
+          <to 
id="_BD27F31A-84E9-4AC0-8B7C-ADFDE7B09E71">_DAEE1BE6-1224-43CD-B187-D61D602DECDC</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation id="_F7B24E38-19CE-45F7-9F90-A6B750666E44">
+        <targetRef>_3B92FD35-57E6-45C8-A882-6A612E38FA6C</targetRef>
+        <assignment id="_2EF544DC-A60D-4C5D-8185-5732E549280F">
+          <from id="_A274DA26-FD7B-458C-A18D-304564FDE228" 
xsi:type="tFormalExpression">none</from>
+          <to 
id="_1256D337-E21D-40BB-822D-FE9AC5167C3A">_3B92FD35-57E6-45C8-A882-6A612E38FA6C</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation id="_1B50484E-4CCF-4554-B40B-D6956F623C39">
+        <targetRef>_8D8CED5F-A32F-4106-94A1-D52FC6FE84C2</targetRef>
+        <assignment id="_C136D0E6-F885-4EED-8C89-14DD21642A74">
+          <from id="_B084D74D-63E8-4C51-B9C5-320B6B3E5873" 
xsi:type="tFormalExpression">application/json</from>
+          <to 
id="_4C7752E4-BF4D-443E-A7B1-5D1CFB77FD1E">_8D8CED5F-A32F-4106-94A1-D52FC6FE84C2</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation id="_9804CAC9-C42C-45F6-8FCE-D3C4DB8340AC">
+        <sourceRef>_6C983473-2837-4B65-813C-17B18856D462</sourceRef>
+        <targetRef>_6445CE16-C641-44BC-9BB5-1361760A5CE0</targetRef>
+      </dataInputAssociation>
+      <dataOutputAssociation id="_DB5A6D77-AC4E-439D-A25C-049E4A91A7C8">
+        <sourceRef>_BB1EE798-08EF-4DF6-A8E4-E6016C4A2293</sourceRef>
+        <targetRef></targetRef>
+      </dataOutputAssociation>
+    </task>
+    <task id="_9262E7B8-11D3-4710-B011-C362FE709ED0" name="Rest Call 2" 
drools:taskName="Rest">

Review Comment:
   yes, this process is to verify that with two workitems of same time without 
TaskName, still two endpoints are generated. I will give it a better name for 
the bpmn and the test name itself.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to