I have a simple asynchronous method:
@Asynchronous
public void doSomething(Promise<int> something) {
if(something == 0) {
return;
}
ActivityHolder.someActivity();
System.out.println("Current value: " + Integer.toString(something));
doSomething(something--);
}
This is what I'm doing to see if a certain requirement of mine is feasible or not. I essentially, want certain actions to be performed in batches, where members of each batch are run parallely. I essentially have another activity (in another class):
@Activity
public void someActivity() {
// Some stuff
}
The output i get is (I call doSomething with 100):
Current value: 100
After that, the workflow execution fails and gives me an error stating that the activity was not found. Why was it not found? How was it found in the first execution?