Hi, im playing around with camunda-bpm-simulator, i have created a simple model where i call a service task with delegate to determine value for a gateway:
then i added extension to simulate service behaviour:
simGeneratePayload: isPaid=${g.uniformFromArgs2(true,false)}
For simulation purpose it works as intended, however after simulation i would expect, for new instances to call delegate, instead the value is still taken from simulation.
How can i turn off this extension after simulation has ended?
This is how im running simulation:
@Component
@RequiredArgsConstructor
public class DemoData {
@EventListener
public void notify(final ProcessApplicationStartedEvent processApplicationStartedEvent) {
SimulationExecutor.execute(DateTime.now().minusMonths(2).toDate(), DateTime.now().toDate());
SimulatorPlugin.resetProcessEngine();
}
}