<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Process control don't Cancel nor Terminate the WF in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278331#M549246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't worked fine. My WF has 3 levels and, the way I've developed the solution, that was putind a variable that is returned in each level to tell its father that its son was killed, worked only from the grandson to the father, as mentioned bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WF grandfather (1st level)- Continues with In process status, even its grandson having received the CANCEL event in the Wait for event task.... Here I put a condition after the sub-wf task asking if canceled = X... and if YES, it is a process control type 7 to terminate this wf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WF father(2nd level) - is canceled. Here I put a condition after the sub-wf task asking if canceled = X... and if YES, it is a process control type 7 to terminate this wf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WF grandson (3rd level)- is canceled--&amp;gt; Here is the Wait for event activity, container operation to give a X to the canceled's variable and the control process type 7 to terminate this WF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sequence of terminating is from the bottom to above:&lt;/P&gt;&lt;P&gt;1st killed - Grandson;&lt;/P&gt;&lt;P&gt;2nd killed - father;&lt;/P&gt;&lt;P&gt;3rd would be killed - Grandfather;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has any suggestion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Glauco Kubrusly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2006 19:35:42 GMT</pubDate>
    <dc:creator>glauco</dc:creator>
    <dc:date>2006-04-26T19:35:42Z</dc:date>
    <item>
      <title>Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaq-p/1278324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Process control in my workflow, so I can listening to cancel event and terminate this workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This WF has some sub-wf that have to be terminated too if a transaction executes the cancel event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tryied using both process control to terminate and cancel too, but only the sub-wf is killed. The wf phater never changes its status to caceled. Only its chield is canceled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Glauco Kubrusly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 14:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaq-p/1278324</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2006-04-25T14:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278325#M549240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually place a process control i ALL workflows I need to terminate. I know there are other ways, but that's not stable. So my suggestion is, place a listener and a process control in each of the workflows you want to terminate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards &lt;/P&gt;&lt;P&gt;Mikkel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 18:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278325#M549240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T18:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278326#M549241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but I did exactly it but the WF father continues processing status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put the an leg's fork inthe father and in the child, but only the child was killed and the father continues in processing status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realy don;t know what can it do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 19:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278326#M549241</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2006-04-25T19:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278327#M549242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cancel Workflow should Cancel parent and child both.&lt;/P&gt;&lt;P&gt;If it is not working for you then before doing process control in child WF set one dummy WF container element and in the father WF check that Dummy WF container element. If that element set again create process control and cancel the WF.&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2006 20:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278327#M549242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-25T20:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278328#M549243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using which version? If on 4.7, additional function option in process control can be used as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not exactly visualised how the process control is placed in your scenario.&lt;/P&gt;&lt;P&gt;But if I understand the requirement, you want to cancel child workflow( subworklfow) and main workflow as well when child worklfow gets cancelled.&lt;/P&gt;&lt;P&gt;If so, then you achieve this &amp;lt;b&amp;gt;using process control only in child workflow&amp;lt;/b&amp;gt;, and use function- "Cancel Workflow (including all callers)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akshay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 03:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278328#M549243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T03:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278329#M549244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi' again Glauco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know as well as you proberbly do, that it should be possible to do what you want with process control. I have on the other hand, had the expirience that on one system, sometimes the did not kill the father. So Workitems, from the parrent workflow still recided in the users inbox. When they tried to open it, it came with an error, and dissapered, the same story if I through SWIA tried to reserve the workitem. On that system I implementet a WAPI, that "touched" WI's of the father workflow when terminated. Not pretty, but it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Mikkel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 07:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278329#M549244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T07:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278330#M549245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 46C, and I don't know if it has the function mentioned by Akshay Bhagwat: function- "Cancel Workflow (including all callers)". But I'll try to find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the idea of an element that tells the father the chield was killed and I'll try it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s.: Mikkel, my case isn't the same case the WI's that wasn't killed as you said, because the father has only a fork leg with a process control and a wait for event activity. The strange thing here is that, after cancel event is executed, the graphic shows all the father's fork legs executed too, including the leg that has the wait for event+process control, is painted of green too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s.2.: Friends, My english will be improved because I'm going to back to my english course. rs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 13:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278330#M549245</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2006-04-26T13:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278331#M549246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't worked fine. My WF has 3 levels and, the way I've developed the solution, that was putind a variable that is returned in each level to tell its father that its son was killed, worked only from the grandson to the father, as mentioned bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WF grandfather (1st level)- Continues with In process status, even its grandson having received the CANCEL event in the Wait for event task.... Here I put a condition after the sub-wf task asking if canceled = X... and if YES, it is a process control type 7 to terminate this wf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WF father(2nd level) - is canceled. Here I put a condition after the sub-wf task asking if canceled = X... and if YES, it is a process control type 7 to terminate this wf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WF grandson (3rd level)- is canceled--&amp;gt; Here is the Wait for event activity, container operation to give a X to the canceled's variable and the control process type 7 to terminate this WF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sequence of terminating is from the bottom to above:&lt;/P&gt;&lt;P&gt;1st killed - Grandson;&lt;/P&gt;&lt;P&gt;2nd killed - father;&lt;/P&gt;&lt;P&gt;3rd would be killed - Grandfather;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has any suggestion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Glauco Kubrusly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 19:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278331#M549246</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2006-04-26T19:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278332#M549247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The option mentioned fro Cancel workflow ( Including all callers) is available 4.7 onwards, so you wont get it in 4.6.&lt;/P&gt;&lt;P&gt;Anyway, If I understand correctly, you have a fork in main WF wherin one branch has Wait fro event followed by Process control. Other branch has SUbworkflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the scenario, just wanted to have one wild thought, &amp;lt;b&amp;gt;what if you only have proces control only in parent WF?&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Your fork  in main WF can have end condition to have any one branch for completing this fork. So, if cancellation event occurs, the respective branch of process control will execute and fork will be completed, at the same time subworkflow related branch of fork will get logically deleted(i.e. cancelled) eventhough it is in process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Akshay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 04:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278332#M549247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T04:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278333#M549248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is exactly as you have said: &lt;/P&gt;&lt;P&gt;My main WF has a fork in main WF wherin one branch has Wait for event followed by Process control. Other branch has the SUbworkflow that also has its subworkflow, making a 3 level WF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;If this is the scenario, just wanted to have one wild thought, what if you only have proces control only in parent WF? &lt;/P&gt;&lt;P&gt;- I've tested it... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'll try, beyond the process control inside the son, I'll try also put the process control in the father.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll answer if it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 13:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278333#M549248</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2006-04-27T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278334#M549249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked fine. Now I only added the new fork leg in the father with a Wait for event and a control process to terminate the WF father too in case of cancel's event is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I couldn't understand why it didn't work only with variables and control process only in the children.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;P&gt;msn: glaucokubrusly@hotmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 19:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278334#M549249</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2006-04-27T19:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process control don't Cancel nor Terminate the WF</title>
      <link>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278335#M549250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could try using "Terminating Event" for all the parent workflows to be triggered from the child workflow process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Viren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 19:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/process-control-don-t-cancel-nor-terminate-the-wf/qaa-p/1278335#M549250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T19:23:25Z</dc:date>
    </item>
  </channel>
</rss>

