Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
loganmanning

New Member
Registered:
Posts: 9
Reply with quote  #1 
Is it possible to have a Dynamic stage role script return an empty string? 

function SomeFunction()
{
    var result = "";
    if (Somecondition)
    {
        result = someeworkvariable;
    }
 
    return result;
}

 

If Somecondition evaluates to true, the script work.

If result is empty I get the following error in elog: "[psp_handle_alerts] Too long UserName in custom role formula."

Any insight?

If I change the initialization line to result = "admin" and Somecondition evaluates to false, the script works. It just can't return empty result for a stage role? 
0
loganmanning

New Member
Registered:
Posts: 9
Reply with quote  #2 
Also, if I select "Metastorm Administrator" role it works fine, I guess it was a result of the stage not having a single role on its todo list
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
You need to return a list. An empty string does not equate to a list IIRC, but a string does.

Mstm.ListItems( <variable> )

or

Mstm.ListItems("")

should be OK.

__________________
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
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!