cancel
Showing results for 
Search instead for 
Did you mean: 

SAP NW BPM with Loop (Time Trigger)

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

for long running repeating tasks are better to use Java Job Scheduler.

junwu
Active Contributor
0 Kudos

error info please

Former Member
0 Kudos

There is no error info Jun; only that what I have posted.

Thanks

junwu
Active Contributor
0 Kudos

are you sure? you check both history  and default trace

Former Member
0 Kudos


Yes its not possible, go to history tab and change to adavnce option(basic option is default and will not give anything).

Thanks

Manish