Skip to main content
Nintex Community Menu Bar

How To run loop over all the line rules ?

  • August 20, 2008
  • 7 replies
  • 16 views

Forum|alt.badge.img+8

Greetings Everyone !,  I waned to run a loop over all the line rules in the process? Has anyone tried it before ?

Is it possible to run loop over all the line rules in a process instance?

Thanks in advance
 

7 replies

Forum|alt.badge.img+8
Suggestions Anyone ?

Forum|alt.badge.img+8
  • August 21, 2008

Never tried it before.  According to the sdk, on Activity class there is a FinishLines property which should be a collection of lines coming off the activity.  There is also a StartLines collection which I assume are lines going into the activity.


Interested in what you are trying to achieve.


Jason


Forum|alt.badge.img+9
  • Nintex Partner
  • August 22, 2008

Hi k2.netdeveloper,


Can you provide more details about what exactly it is you're trying to accomplish?  Are you looking to see all rules that have executed already, or potentially execute, or potential lines for a specific activity...?


Thanks.


 


 


Forum|alt.badge.img+8
I am planning to run a loop on all the lines for a active activity....

Forum|alt.badge.img+11
  • August 22, 2008

Do you mean you want to execute an activity in a loop so the line rules are evaluated more than once?  Or you want to make a list of all the line rules?


Forum|alt.badge.img+8

Well, i just wanna list of all the line rules in a process instance, i can get list of all the lines in a process instance but could not get to the line rules.

foreach(line l in lines)

{

l.name.tostring(); 

 

this does give me list of all the lines available in the process, but i could not find any property like ...l.linerules ? 


Forum|alt.badge.img+5

I think the lines are accessible within the activity instance, In other words, you can't access line rules that are not coming in or going out of the active activity instance.