How can Camunda BPM connect to Blockchain in Java?

i struggled so much in this topic, how can the bpmn collaboration keep track of the activities executed by the user in a smart contract of the ethereum blockchain. i need some java code example please,

i am using Web3 java

Thank you so much!!!

What exactly have you tried so far and what issues are you facing exactly?

Thank you very much for your reply, first of all i am your fan!
i have changed to use JS, the tasks in my process are all external tasks,and i used Postman to start the process, the process is working well and then
i want to integrate Web3 js inside the external task js code, to achieve this function: once the process start, the information in the toke will be as a transaction ,store in the blockchain. i dont know how to code this, can i write web3 js code directly inside the external work code?
Thank you so much! Niall.

This seems like a perfectly good options - any time you’re using external task the business logic of your process as well as any external libraries should all be done in the external task. Specifically the point after the task has been successfully locked from the engine.

Hope that helps. :slight_smile:
-Niall

1 Like

Danke so much! it worked

Best Regards

1 Like

Very happy to hear it.