on 04-11-2014 2:56 PM
Hello SDN,
I have modelled a small BPM with an EJB function and a time trigger. The first time it works fine. After it, the process changes to the status "Error / Stopped" and will not executed.
I try to model a loop which triggers an event (Bean execution) every 5 minutes.
EJB Bean Code:
package xxxxxxxx;
import javax.ejb.Stateless;
import commonj.sdo.DataObject;
/**
* Session Bean implementation class Sample
*/
@Stateless
public class Sample implements SampleLocal {
private static final com.sap.tc.logging.Location logger = com.sap.tc.logging.Location .getLocation(Sample.class);
public Sample() {
}
@Override
public DataObject invokeSdo(DataObject dataObject, InvocationContext invocationContext) {
logger.errorT("This message is pushed by a SAP NetWeaver BPM");
DataObject output = invocationContext.createOutputDataObject();
return output;
}
}
Please see attached JPEGs for the process flow.
Thanks a lot, Cheers
Cengiz
for long running repeating tasks are better to use Java Job Scheduler.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
error info please
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.