mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
test: test chinese result #581
This commit is contained in:
parent
4b79bd73bb
commit
aa65884b3f
@ -13,7 +13,6 @@ import java.util.Optional;
|
|||||||
*/
|
*/
|
||||||
public class SimpleProcessor implements BasicProcessor {
|
public class SimpleProcessor implements BasicProcessor {
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ProcessResult process(TaskContext context) throws Exception {
|
public ProcessResult process(TaskContext context) throws Exception {
|
||||||
|
|
||||||
@ -23,6 +22,11 @@ public class SimpleProcessor implements BasicProcessor {
|
|||||||
logger.info("Current context:{}", context.getWorkflowContext());
|
logger.info("Current context:{}", context.getWorkflowContext());
|
||||||
logger.info("Current job params:{}", jobParams);
|
logger.info("Current job params:{}", jobParams);
|
||||||
|
|
||||||
|
// 测试中文问题 #581
|
||||||
|
if (jobParams.contains("CN")) {
|
||||||
|
return new ProcessResult(true, "任务成功啦!!!");
|
||||||
|
}
|
||||||
|
|
||||||
return jobParams.contains("F") ? new ProcessResult(false) : new ProcessResult(true, "yeah!");
|
return jobParams.contains("F") ? new ProcessResult(false) : new ProcessResult(true, "yeah!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ spring.jpa.open-in-view=false
|
|||||||
# Whether to enable PowerJob Worker, default is true
|
# Whether to enable PowerJob Worker, default is true
|
||||||
powerjob.worker.enabled=true
|
powerjob.worker.enabled=true
|
||||||
# Turn on test mode and do not force the server connection to be verified
|
# Turn on test mode and do not force the server connection to be verified
|
||||||
powerjob.worker.enable-test-mode=true
|
powerjob.worker.enable-test-mode=false
|
||||||
# Transport port, default is 27777
|
# Transport port, default is 27777
|
||||||
powerjob.worker.port=27777
|
powerjob.worker.port=27777
|
||||||
# Application name, used for grouping applications. Recommend to set the same value as project name.
|
# Application name, used for grouping applications. Recommend to set the same value as project name.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user