Created
March 26, 2019 15:44
-
-
Save strongme/271b83e50efbe0fa3e025686910c8b2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bettem.mp.flowable; | |
import lombok.extern.slf4j.Slf4j; | |
import org.flowable.engine.delegate.DelegateExecution; | |
import org.flowable.engine.delegate.JavaDelegate; | |
/** | |
* description: | |
* email: <a href="strongwalter2014@gmail.com">阿水</a> | |
* | |
* @author 阿水 | |
* @date 2019-03-26 22:47. | |
*/ | |
@Slf4j | |
public class AutoDecideMeeting implements JavaDelegate { | |
@Override | |
public void execute(DelegateExecution execution) { | |
log.info("Inside auto decide service..."); | |
Integer finalSum = execution.getVariable("finalSum", Integer.class); | |
if (finalSum == 3) { | |
execution.setVariable("approveCode", "00"); | |
}else { | |
execution.setVariable("approveCode", "01"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment