File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Camunda8 } from '../../c8'
2- import { OperateApiClient } from '../../operate'
32
4- const operate = new OperateApiClient ( )
5- const camunda = new Camunda8 ( ) . getCamundaRestClient ( )
6- const topology = camunda . getTopology ( )
3+ const c8 = new Camunda8 ( )
4+ const camunda = c8 . getCamundaRestClient ( )
5+ const operate = c8 . getOperateApiClient ( )
76
87export async function cancelProcesses ( processDefinitionKey : string ) {
9- const gatewayVersion = ( await topology ) . gatewayVersion
8+ const topology = await camunda . getTopology ( )
9+
10+ const gatewayVersion = topology . gatewayVersion
1011 const [ major , minor ] = gatewayVersion . split ( '.' ) . map ( Number )
1112 const useCamundaRestClient = major > 8 || ( major === 8 && minor >= 8 )
1213 const { searchProcessInstances, cancelProcessInstance } = useCamundaRestClient
You can’t perform that action at this time.
0 commit comments