Script Task - PHP

Hello everyone.
I’m fairly new to Camunda and the REST API seems very interesting. I have tried a few things, like for instance adding a User Task to my BPMN, declare a form “embedded:deployment:formTest.html” and afterwards deploying it alongside the BPMN using REST. This works.
What I’m now trying to achieve is to create a Script Task. I have tried creating a PHP file and declaring on my Script Task the deployed PHP file.
image
Sadly, this doesn’t seem to work, as I get following error:
An error happened while submitting the task form : Cannot submit task form 7307bde1-edd7-11ea-83d1-ace2d310265a: Can’t find scripting engine for ‘php’: scriptEngine is null.

Is there a way to use PHP as a Script Task engine?

Thank you.

@CKteixeira, Camunda BPM supports scripting with JSR-223 compatible script engine implementations. as of now the supported scripting are Groovy, JavaScript, JRuby and Jython.

https://docs.camunda.org/manual/latest/user-guide/process-engine/scripting/

https://docs.camunda.org/manual/latest/introduction/third-party-libraries/#process-engine

https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/service-task/#external-tasks

By using external task pattern, you can try like this below:

Note: I haven’t tested myself the above example, but it will helpful for you to start with that :slight_smile:

1 Like

@aravindhrs Thank you for your reply. :slight_smile: