Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
rbrodka

Senior Member
Registered:
Posts: 76
Reply with quote  #1 

Hello All,

I have a v7.6 process I am converting to v9.  In this v7 process, there is a flag action that calls a server script.  This server script uses ework.Session.FlagData to access the parameters passed in with the flag.  For example:

Quote:
function Process_Review_Update_Flag() {
   var Flag_Data = ework.Session.FlagData;

   var Data_Array = Flag_Data.split('\t');

   var Department        = Data_Array[1];
   var Review_Result    = Data_Array[2];
   var Reviewer_Name  = Data_Array[3];
   ...
}


In my v9 process, I have created a C# server script that is called when the flag action completes, but I don't understand how to access the parameters passed in with the flag.

Does anyone know what the v9 equivalent of ework.Session.FlagData would be?

How do I access the flag parameters in a C# script?

Thanks.

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
The flag parameters have to be defined, unlike in version 7 when you could ignore the definition.

When you are in a flagged action, you reference the parameters as:
FlagData.<parameter name>

In a server script function you have no reference to the flag or parameters, and I can see no way to get hold of it. You should probably just pass the data into the function.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
rbrodka

Senior Member
Registered:
Posts: 76
Reply with quote  #3 

Thanks Jerome,

I could not find a way to access the FlagData data from script either.  There must be a reason that object is not exposed, but I don't know why.

Good idea about passing in the values, that will work for me and solve the problem.

Thanks again.

Randall

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!