cancel
Showing results for 
Search instead for 
Did you mean: 

unit test workflow - mocking Call Activity call - from other workflow

siddu
Champ in-the-making
Champ in-the-making
Team,

I have a workfow "FirstWorkflow" which is calling "SecondWorkflow" using call activity feature. While testing "FirstWorkflow" I want to mock the call activity call to "SecondWorkflow".I am not finding any solutions for this - Please help

activiti version I am using-5.16.3


Thanks,
Siddu
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Siddu,

There are many possibilities to do that. Some of them:
1.  Hook into process parsing and mock the call activity there. (acitivit-crystalball uses this approach to simulate services calls)
2. mock all service calls in subprocess (org.activiti.standalone.testing.MockSupportWithActivitiTestCaseTest)

Regards
Martin