diff --git a/src/Entity/Request/History/IdentityLinkRequest.php b/src/Entity/Request/History/IdentityLinkRequest.php new file mode 100644 index 0000000..7af8734 --- /dev/null +++ b/src/Entity/Request/History/IdentityLinkRequest.php @@ -0,0 +1,32 @@ +setRequestUrl('/history/identity-link-log') + ->setRequestMethod('GET') + ->setRequestContentType('QUERY') + ->setRequestObject($identityRequest) + ->run(); + + return $this->getResponseContents(); + } + + public function getListCount(IdentityLinkRequest $identityRequest = null) + { + $this->setRequestUrl('/history/identity-link-log/count') + ->setRequestMethod('GET') + ->setRequestContentType('QUERY') + ->setRequestObject($identityRequest) + ->run(); + + return $this->getResponseContents(); + } +} diff --git a/tests/Service/DeploymentServiceTest.php b/tests/Service/DeploymentServiceTest.php index 7b08de8..f8bcd64 100644 --- a/tests/Service/DeploymentServiceTest.php +++ b/tests/Service/DeploymentServiceTest.php @@ -47,12 +47,12 @@ public function testCreate() $files = new FileCollection(); $files->addFile('power35', file_get_contents('./testProcess.bpmn'), 'testProcess.bpmn'); - $files->addFile('start', file_get_contents("./startForm.form"), 'startForm.form'); + //$files->addFile('start', file_get_contents("./startForm.form"), 'startForm.form'); $deploymentRequest = new DeploymentRequest(); $deploymentRequest->set('deployment-name', '测试') ->set('files', $files); - //var_dump($deploymentService->create($deploymentRequest)); + var_dump($deploymentService->create($deploymentRequest)); } public function testDelete() diff --git a/tests/Service/History/IdentityLinkServiceTest.php b/tests/Service/History/IdentityLinkServiceTest.php new file mode 100644 index 0000000..a5bd011 --- /dev/null +++ b/tests/Service/History/IdentityLinkServiceTest.php @@ -0,0 +1,38 @@ +set('type', 'assignee') + ->set('taskId', 'ff3e4da2-e191-11e7-a72e-005056c00008'); + + $result = $identityLinkService->getList($identityLinkRequest); + var_dump($result); + } + + public function testGetListCount() + { + $identityLinkRequest = new IdentityLinkRequest(); + $identityLinkService = new IdentityLinkService(self::CAMUNDA_REST_HOST); + $identityLinkRequest->set('type', 'assignee') + ->set('taskId', 'ff3e4da2-e191-11e7-a72e-005056c00008'); + + $result = $identityLinkService->getListCount($identityLinkRequest); + var_dump($result); + } +}