Incessant Technologies Pvt Ltd
Lead System Architect
Incessant Technologies Pvt Ltd
KIRANM_INCESSANT Member since 2011 11 posts
Incessant Technologies Pvt Ltd
Posted: June 25, 2015
Last activity: September 3, 2015
Posted: 25 Jun 2015 12:12 EDT
Last activity: 3 Sep 2015 5:39 EDT

Warning when using Declare Triggers

Note that when using a Declare Trigger to run a trigger activity, the activity does not have a parameter page. This has the following effects:

  • Any reference to a parameter will cause the activity to fail with a Java nullPointerException.
  • Any use of looping constructs will also cause a Java nullPointerException, as PRPC will attempt to create and update properties such as Param.pyForEachCount.

Local variables are acceptable. If you need to loop, call a child activity (normal, not trigger) which will have its own parameter page. If you need to pass parameters into this child activity you will have to do it directly (rather than set the parameter values and ticking the “Pass current parameter page” checkbox as this won’t work).

PRPC will not generate any compilation warnings if parameters are used but the activity will fail at run time immediately upon hitting one.

Case Management
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.