Exemplo n.º 1
0
    public function addLine($position, $direction = "HORIZONTAL")
    {
        try {
            //Line
            $swiUid = parent::addLine($position, $direction);

            //BPMN
            //Artifact
            $arrayData = array(
                "ART_UID"    => $swiUid,
                "ART_TYPE"   => ($direction == "HORIZONTAL")? "HORIZONTAL_LINE" : "VERTICAL_LINE",
                "ART_NAME"   => "",
                "BOU_X"      => ($direction == "HORIZONTAL")? -6666 : $position,
                "BOU_Y"      => ($direction == "HORIZONTAL")? $position : -6666,
                "BOU_WIDTH"  => 0,
                "BOU_HEIGHT" => 0
            );

            $artifactUid = $this->bp->addArtifact($arrayData);

            //Return
            return $swiUid;
        } catch (\Exception $e) {
            throw $e;
        }
    }