BPM Pre and Post Processes

They are getting much better in 10


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, May 31, 2016 at 11:37 AM, ckrusen1@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>THANKS!</p><div><br></div><div>I often wonder if Epicor hires specialists to make sure their documentation is as confusing as humanly possible. :)Â </div><p></p>

</div><span class="ygrps-yiv-781623659">
 


<div style="color:#fff;min-height:0;"></div>


I understand the difference between the Pre- and Post-Processes, but what I'm unsure of is the what the "before", "Designed" and "After" sections of custom BPM Action code is.  BTW - on V8.03


If I make a new Pre-Process BPM and chose "Advanced" in the Actions window, the code box is pre-populated with:


/*Add source code that should be executed before the designed actions here*/


{&CALL_DESIGNED_ACTIONS}


/*Add source code that should be executed after the designed actions here*/


If I add code after the "/*Add source code that should be executed after the designed actions here*/" line, will it still be a Pre-Process?


I could make a Pre-Process BPM with just code appearing after the "..after the designed actions here*/" line, and a Post-Proc BPM with the code after the "...before the designed actions here*/" line.  What order wold they process?


Do those "/Add source code.... */" comments really mean anything?


Thanks in advance

 

You should almost never need to put any code there. But basically any code you or there runs before or after your BPM action
It's like having a Pre/Post for the bpm itself

On Wednesday, May 25, 2016, ckrusen1@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><p><span>I understand the difference between the Pre- and Post-Processes, but what I&#39;m unsure of is the what the &quot;before&quot;, &quot;Designed&quot; and &quot;After&quot; sections of custom BPM Action code is.  BTW - on V8.03</span></p><p><span><br></span></p><p><span>If I make a new Pre-Process BPM and chose &quot;Advanced&quot; in the Actions window, the code box is pre-populated with:</span></p><p><span><br></span></p><p><span style="font-size:10px;color:rgb(143,202,64);">/*Add source code that should be executed before the designed actions here*/</span></p><p><span style="font-size:x-small;color:rgb(143,202,64);"><br></span></p><p><span style="font-size:x-small;color:rgb(143,202,64);">{&amp;CALL_DESIGNED_ACTIONS}</span></p><p><span style="font-size:x-small;color:rgb(143,202,64);"><br></span></p><p><span style="font-size:x-small;color:rgb(143,202,64);"></span></p><p><span style="font-size:x-small;color:rgb(143,202,64);">/*Add source code that should be executed after the designed actions here*/</span></p><p><span><br></span></p><p><span>If I add code after the &quot;/*Add source code that should be executed <span style="font-weight:bold;">after </span>the designed actions here*/&quot; line, will it still be a Pre-Process?</span></p><p><span><br></span></p><p><span>I could make a Pre-Process BPM with just code appearing after the &quot;..</span><span style="word-spacing:normal;">after the designed actions here*/&quot; line, and a Post-Proc BPM with the code after the &quot;...</span><span style="word-spacing:normal;">before the designed actions here*/&quot; line.  What order wold they process?</span></p><p><span style="word-spacing:normal;"><br></span></p><p><span style="word-spacing:normal;">Do those &quot;/Add source code.... */&quot; comments really mean anything?</span></p><p><span style="word-spacing:normal;"><br></span></p><p><span style="word-spacing:normal;">Thanks in advance</span></p><p><span> </span></p><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>


--

Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

Do the "designed actions" refer to ones made with the "Action Wizard"?  And by "action wizard", i mean the window that pops up after hitting the Action button.  The one that gives you a table you can add rows to, like "raise an exception based on ...".

So if I had a designed action: "show informational message ...." (made with the "actions wizard") ...
Any code placed after the /*Add source code that should be executed before the designed actions here*/
would be executed before that message is displayed?

And code placed after the /*Add source code that should be executed after the designed actions here*/
would be executed after the message is displayed?

What happens if I place code between the {&CALL_DESIGNED_ACTIONS} and  /*Add source code that should be executed after the designed actions here*/ lines?
Would it replace the designed action?  Would it cause an unstable condition? 

Thanks,

Calvin

 
The only way to "replace it" is to do an IF THEN ELSEÂ

IF XÂ
 {&CALL_DESIGNED_ACTIONS}
ELSE
 DO MY OWN THING

Don't worry about the comments "Add Source Code.. blah blah" they are there for a guide but think of it as any procedural code executes TOP DOWNÂ

ANY CODE HERE WILL EXECUTE BEFORE THE BELOW...
    {&CALL_DESIGNED_ACTIONS}
ANY CODE HERE WILL EXECUTE AFTER THE ABOVE....





Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, May 31, 2016 at 11:13 AM, ckrusen1@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><div><span style="word-spacing:normal;">Do the &quot;designed actions&quot; refer to ones made with the &quot;Action Wizard&quot;?  And by &quot;action wizard&quot;, i mean the window that pops up after hitting the Action button.  The one that gives you a table you can add rows to, like &quot;raise an exception based on ...&quot;.</span><br></div><div><br></div><div>So if I had a designed action: &quot;show informational message ....&quot; (made with the &quot;actions wizard&quot;) ...</div><div>Any code placed after the <span style="color:rgb(143,202,64);font-size:10px;">/*Add source code that should be executed before the designed actions here*/</span><br><div>would be executed <b>before </b>that message is displayed?</div><div><br></div><div>And code placed after the <span style="color:rgb(143,202,64);font-size:10px;word-spacing:normal;">/*Add source code that should be executed after the designed actions here*/</span></div><div>would be executed <b>after </b>the <span style="word-spacing:normal;">message is displayed?</span></div><div><span style="word-spacing:normal;"><br></span></div><div><span style="word-spacing:normal;">What happens if I place code between the </span><span style="color:rgb(143,202,64);font-size:10px;word-spacing:normal;">{&amp;CALL_DESIGNED_ACTIONS} <span style="color:rgb(0,0,0);font-size:13px;">and </span> </span><span style="color:rgb(143,202,64);font-size:10px;word-spacing:normal;">/*Add source code that should be executed after the designed actions here*/ </span><span style="word-spacing:normal;">lines?</span></div><div>Would it replace the designed action?  Would it cause an unstable condition? </div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin</div><div><br></div></div><div> </div><p></p>

</div><span class="ygrps-yiv-1377016773">
 


<div style="color:#fff;min-height:0;"></div>


​And Yes {&CALL_DESIGNED_ACTIONS}
​means anything you selected in the wizard actions (or conditions if you are in the conditional block)





Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?
THANKS!

I often wonder if Epicor hires specialists to make sure their documentation is as confusing as humanly possible. :)