Test case using using fluent builder api and bpmn assert scnario

Hi folks,

I want to write test cases for our process using bpmn assert scenario and creating model instance using fluent builder api, I have checked some example online but in that it is reading deployments resources using bpmn files, but we want to user model instance and test process scenario.

Could anyone please help me on this.


Hi - sorry, I am not sure I understand what exactly the challenge is. For test with bpm-assert it does not matter if the bpmn file was generated with the fluent builder API or by a user. You can simply feed an existing bpmn file to the engine for instance using the @Deployment annotation:

@Deployment(resources = "abc/MyProcess.bpmn")