2014-02-21 21 views

回答

3

您可以通過下面的 '絕招' 使用露天的JavaScript中的Java API:

var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); 
var wfService = ctx.getBean('WorkflowService'); 
wfService.undeployDefinition(workflowDefinitionId); 
+0

謝謝!我不得不使用var'wfService = ctx [「getBean(java.lang.String)」]('WorkflowService');',因爲'getBean'是一個重載方法,'ctx.getBean('WorkflowService')'似乎選擇錯誤的重載(即'getBean(String name,Object ... args)')。 –

相關問題