<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Loren,<br>
    <br>
    Instead of a terminating event for your custom EDIT method, Try
    issuing an EXIT_CANCELLED if the document is not 'COMPLETE'. This
    will keep the workitem from completing.<br>
    <br>
    Cheers,<br>
    Ramki.<br>
    <div class="moz-cite-prefix">On 6/25/15, 1:58 PM, Bratzler, Loren
      wrote:<br>
    </div>
    <blockquote
cite="mid:D093F74E504B0745917E905C9FC31F2D13A569B109@GATUCEXCH07ASV.nscorp.ad.nscorp.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello Wuggers,<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Hope someone can help me here:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I have a requirement in a workflow to have
          a two-part approval process for the Incoming Invoice (BUS2081)
          business object.&nbsp; The first part of the approval process is to
          have the approver open the document in Edit mode and review
          and make revisions to a restricted number of fields.&nbsp; Once
          their review is done, we want them to click &#8220;Save as Complete&#8221;
          and then automatically advance to the second part of the
          approval process where the user decision (approve or reject
          buttons) appear.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">For the first step of the process, I am
          using the standard EDIT method of the object and when I define
          my task for using this method, I assign the terminating event
          &#8220;COMPLETED&#8221; so that the task will only complete when the user
          clicks &#8220;Save as Complete&#8221;.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">The problem is that the EDIT method for
          this object is asynchronous:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><img id="Picture_x0020_1"
            src="cid:part1.08070206.01050902@erpworkflow.com"
            height="378" width="405"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">So the &#8220;advance with dialog&#8221; option does
          not work to automatically advance to the user decision step
          where the approve/reject buttons will appear.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I tried to create my own custom synchronous
          method in the object that was a copy of the standard method.&nbsp;
          I then created a new task to execute this new method and
          defined the same terminating event.&nbsp; However, the problem with
          that is when I insert the task into the workflow, there are
          two outcome paths.&nbsp; One path is for the terminating event I
          assigned but the other path is the normal &#8220;advance&#8221; path.&nbsp;
          This causes the workflow to advance to the user decision step
          when we don&#8217;t want it to.&nbsp; We only want it to advance when
          they click &#8220;save as complete&#8221; and raise the COMPLETED event.&nbsp;
          With this configuration, the step advances when they click
          other options on the screen like &#8220;back&#8221;, &#8220;exit&#8221; or &#8220;cancel&#8221;.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><img id="Picture_x0020_2"
            src="cid:part2.01080905.03080202@erpworkflow.com"
            height="471" width="403"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">The workflow builder will not allow me to
          deactivate the &#8220;Step executed&#8221; outcome for the step:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><img id="Picture_x0020_3"
            src="cid:part3.04090005.04040807@erpworkflow.com"
            height="190" width="600"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Error message that occurs when you try to
          deactivate this outcome:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><img id="Picture_x0020_4"
            src="cid:part4.06070504.05040800@erpworkflow.com"
            height="309" width="975"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">So I&#8217;m trying to figure out is there some
          way for me to get around these limitations?<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:&quot;Comic Sans
            MS&quot;;color:blue">Loren Bratzler<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Norfolk
            Southern Corporation<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SAP-WUG mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>