コード例 #1
0
 /**
  * @test
  */
 public function getLocalExecutionVariables()
 {
     $restClient = new camundaRestClient(self::$restApi);
     $ei = $restClient->getExecutions()[0];
     $ev = array('value' => 'test', 'type' => 'String');
     $restClient->putLocalExecutionVariable($ei->id, 'testVariable', $ev);
     $this->assertGreaterThan(0, count($restClient->getLocalExecutionVariables($ei->id)));
     $this->assertEquals('test', $restClient->getLocalExecutionVariables($ei->id)->testVariable->value);
     $restClient->deleteLocalExecutionVariable($ei->id, 'testVariable');
 }