Add service.updateProcess()
This commit is contained in:
parent
62617caf79
commit
c76d5121b1
@ -394,6 +394,14 @@ export default class Services {
|
||||
}
|
||||
}
|
||||
|
||||
public updateProcess(processId: string, new_state: any): ApiReturn {
|
||||
try {
|
||||
return this.sdkClient.update_process(processId, JSON.stringify(new_state));
|
||||
} catch (e) {
|
||||
throw new Error(`Failed to update process: ${e}`);
|
||||
}
|
||||
}
|
||||
|
||||
// Create prd update for current process and update
|
||||
public createPrdUpdate(processId: string, stateId: string): ApiReturn {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user