2016-11-21 97 views
0

camunda rest api是否有辦法一次性刪除所有流程實例變量。Camunda刪除進程中的所有變量

我想我看了一些資料是說,你可以用做...

DELETE http://localhost:8080/contextRoot/rest/engine/default/process-instance/{id}/variables 

但是,當我嘗試,我得到一個...

{ 
    "timestamp": 1479705176075, 
    "status": 405, 
    "error": "Method Not Allowed", 
    "message": "Method Not Allowed", 
    "path": "/contextRoot/rest/engine/default/process-instance/14/variables" 
} 

如果我加一個變量我可以逐個刪除,但那不是我所追求的。

感謝

回答

1

不,不可能在Java或REST API作爲當前版本7.5.0和7.6.0-素α5的。你可以使用POST ../variables/modify與請求體,如最近的:

{ 
    "deletions": 
    [ 
    "var1", "var2", "var3" 
    ] 
} 

你還必須知道的變量刪除,但至少它是一個單一的請求。

+0

謝謝你的 – Richie

相關問題