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