ProcessMaker / nayra

Nayra is a BPMN workflow engine in PHP. Utilize it in your own projects to have your own complex workflow capabilities.
Apache License 2.0
123 stars 32 forks source link

Add BpmnElement reference #177

Closed caleeli closed 4 years ago

caleeli commented 4 years ago

As a developer I would like to get the reference to the BPMN element of a loaded BPMN document, so I can work with that element reference.

interface EntityInterface
{

    /**
     * @return \ProcessMaker\Nayra\Contracts\Storage\BpmnElementInterface
     */
    public function getBpmnElement();

    /**
     * Set DOM element of this object.
     *
     * @param BpmnElementInterface $domElement
     *
     * @return $this
     */
    public function setBpmnElement(BpmnElementInterface $ownerDocument);
}