Connect to decision table by PHP SDK API in the Symfony2 project

Hi,
I have a decision table (DMN file) and I apply this example in my Symfony2 project https://github.com/camunda/camunda-dmn-cloud-examples/blob/master/php/dish-decision.php, but, I want use the PHP SDK API. I want a documentation about how can I connect to DMN (decision table) from PHP SDK API.
Can you help me ?

Hi @fatma_wings,
please don’t open multiple topics for the same question (see here).

Thank you and best regards,
Mat

1 Like

Hi @Matthijs_Burke,
I’m so sorry. Tell me how can I delete another topic because I can’t find the button delete, and do you have an anwser for my question??

@fatma_wings, you should be able to delete the topic in the context menu of your post.

Sorry but no, I don’t have an answer. You’ll get a response to your question once someone who does know an answer sees it.

Thanks and best regards,
Mat

The easiest way is to use the Camunda REST API and pass it the message you want evaluated. Then parse the response. This method works with anything that can do an HTTP POST.

An example URL:

https://mycamunda.co.com:8443/engine-rest/engine/default/decision-definition/key/myDmnTable/evaluate

The payload would be something like this:

{
    "variables":
        {
            "eventMessage":
                {
                   "value":"Process has stopped",
                   "type":"string"
                }
        }
}

Hi @mppfor_manu,
Camunda REST API communicate with the PHP SDK API in the Symfony2 project . The PHP SDK API is for the process BPMN. Can we use The PHP SDK API with DMN (decision table).

I’m not sure I understand your question. The Camunda REST API receives messages, I don’t think it sends messages.

As described above, you simply POST a message to the REST service using some form of HTTP client. If you’re looking for the precise method on how to do this from the PHP SDK API (with which I’m not familiar), then I can’t help.