Question
Accenture
IN
Last activity: 9 Feb 2016 10:27 EST
Does any thing in Java step method suppresses the Declarative rule?
Suppose I am writing an activity which has the following steps
Case 1:
1. Open a Blob
2. Do Property-Set
3. Save and Commit the Blob
Step 2 is responsible for the execution of the declarative rule.
If I replace the step 2 with a Java step then will the declarative rule not trigger.
Have seen cases where such behavior was observed, but not part of the code module that had such behavior.
So curious to know does something like this happens?
Another question:
While making the changes to the blob from the standalone activity, is it possible to suppress all the declarative rule of the application?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems
US
Here are some things to check:
1) Peek at the java generation for your activity, both in the case of using real property-set, and using a java step instead, and do a text-diff of the two. See if there any calls showing up in one and not the other for handling triggering. If both look the same in that regard, I would expect the triggering to be the same for both.
2) If the security tab of the activity shows the activity to be an "onchange" type, then triggering won't occur. (What other types don't do triggering ?)
If the above still doesn't help you resolve your problem, then we'd need to know more about what kind of triggering you are expecting that is failing to occur.
/Eric
Accenture
IN
Thanks for the quick reply.
The above information seems to be good to start with.
It about the onchange, so does that mean that if I write java code that might possible not a standard way to do it, and might not trigger declare onchange?
Updated: 8 Feb 2016 11:12 EST
Pegasystems Inc.
GB
Hi Rasaiya,
Just for completeness: can you post exactly the Java Code you used to replace the 'Property-Set' with please ?
Additionally: if you view the Generated Java for your Activity : when the Property-Set Step is in place; you should see the Java Equivalent in a method which will be named after the step number.
(Actions Button | View Java I mean).
EDIT: Eric already suggested the exact same thing ! Sorry Eric - I hadn't read through your response when I posted !
Thanks,
John
Accenture
IN
Java code just accesses the step page and does a put string.
Process 360
IN
Accenture
IN
My Bad,
I wanted to mention declarative rule in general
Pegasystems
US
Right, there's declare-onchange, declare-trigger and others. Declare-trigger fires when the data is saved. Declare-onchange happens earlier. Declare-expression happens earlier too. /Eric
Accenture
IN
Sorry for the confusion