コード例 #1
0
 public function testStartProcessInstance()
 {
     $restClient = new camundaRestClient(self::$restApi);
     $countPreStart = $restClient->getProcessInstanceCount()->count;
     foreach ($restClient->getProcessDefinitions() as $data) {
         if ($data->key == 'invoice') {
             $restClient->startProcessInstance($data->id);
         }
     }
     $this->assertGreaterThan($countPreStart, $restClient->getProcessInstanceCount()->count);
 }
コード例 #2
0
 /**
  * @test
  */
 public function getProcessInstanceCount()
 {
     $restClient = new camundaRestClient(self::$restApi);
     $pi = $restClient->getProcessInstanceCount()->count;
     $this->assertGreaterThan(0, $pi);
 }