Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Automation by Redwood
Viewing all articles
Browse latest Browse all 646

getReplyExpression() doesn't return all the operator message replies

$
0
0

Hi Everyone,

CPS build version M33.104.

 

Our BW process chains end up in console state and we are planning to reply all operator messages by the end of day.

I using the following snippet to get all the reply expressions, and then set it to error.

 

//Set process chain to Error in the operator message reply);                jcsOut.println(op.getReplyExpression());                String[] ar = op.getReplyExpression().split("\\|");                jcsOut.println("");                for(int i=0;i<ar.length;i++)                {                    if(ar[i].contains("SetError"))                    {                        op.setReply(ar[0].replace("^", "").replace("\\", ""));                        jcsOut.println(op.getReply());                        jcsSession.persist();                        jcsOut.println("Replied");                    }                }

but it doesn't work. Event though i'm getting all the reply expressions, it doesn't return all.

The below is the output for the line 2 in above snippet, while the actual operator message had at least 8 replies.

BW_H_BI_BW_ZMC_OPS_TD_EWM_ACQ1

@specialhandler@ProcessChainRestart

Please help me fix this issue.

 

Thanks

Nanda


Viewing all articles
Browse latest Browse all 646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>