2017-04-11 24 views
0

我有一個BPMN2圖與兩個連續的專用網關。在我的第一個網關,我有兩個表達式條件類型爲yes和no行:如何實現/建立兩個連續的獨家網關BPMN2圖

${enoughDrinks} 
${notenoughDrinks} 

在此之後唯一網關,我有相同的yes和no線和一個額外的三線「之外的第二唯一網關選項」。我的問題是:我該如何設置?當我運行過程,並獲得了無線「夠飲料」網關,我得到用於第二網關的布爾表達式條件的錯誤:

Unknown property used in expression: ${otherOption}. Cause: Cannot resolve identifier 'otherOption' 

我已經宣佈的執行方法的可變我的類實現JavaDelegate類:

public void execute(DelegateExecution execution) throws Exception { 
    boolean otherOption = (Boolean)execution.getVariable("otherOption"); 
    execution.setVariable("otherOption", otherOption); 
} 

下面是BPMN圖,紅色箭頭指向有問題的行。

enter image description here

也許一般的問題是:如果它甚至有可能在連續的獨家網關無需用戶任務其間?

+0

請發佈您的流程定義。你什麼時候執行JavaDelegate?在這個過程中沒有ServiceTask。你有執行或TaskEventListener嗎? – Zelldon

回答

0

由於您似乎沒有任何服務任務在您的過程中定義:委託在哪裏執行?

嘗試將其添加爲第二個網關的「開始」偵聽器

相關問題