Using BPM Data form to conditionally execute code

I received some direction yesterday from Epicor Tech Support. They will be
putting together an answerbook for this one.



Basically, what you need to do is have multiple directives:



Your first directive calls your BPM data form as its actions (with whatever
conditions you want).



Then, subsequent directives use "the specified call context field is equal
to the specific expression" condition. On this condition, you set
"specified call context" to "ttCallContextBPMData.ButtonValue" (or checkbox,
or character field, or .), then the specified value is the value of the
button you gave it in the data form.



If you have multiple actions to process (one based on whether they clicked
the "YES" button, one if they clicked the "NO" button), then you would have
multiple directives. For a simple yes/no dialog box, you would likely have
three directives: the first to call the data form, the second to process if
they click YES, the third to process if they click NO.



Kevin



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
ksimon8fw
Sent: Thursday, January 27, 2011 4:11 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Using BPM Data form to conditionally execute code





Has anyone successfully used a BPM data form to conditionally execute/bypass
code?

As an example, on an update method if a user checks a box, I want a form to
come up that says "did you mean to do this?". The user clicks YES,
processing continues. The user clicks NO, and I throw an exception which
cancels the update.

The example they have in the Epicor users guide doesn't help much, and tech
support had nothing either.

Thanks,

Kevin Simon





[Non-text portions of this message have been removed]
Has anyone successfully used a BPM data form to conditionally execute/bypass code?

As an example, on an update method if a user checks a box, I want a form to come up that says "did you mean to do this?". The user clicks YES, processing continues. The user clicks NO, and I throw an exception which cancels the update.

The example they have in the Epicor users guide doesn't help much, and tech support had nothing either.

Thanks,

Kevin Simon