Java 使用camunda modeler执行base64编码/解码时出错
使用Camunda将字符串转换为base64编码/解码时出现以下错误 错误:Java 使用camunda modeler执行base64编码/解码时出错,java,base64,camunda,camunda-modeler,Java,Base64,Camunda,Camunda Modeler,使用Camunda将字符串转换为base64编码/解码时出现以下错误 错误: Cannot instantiate process definition dciworkflow:1:f44c5806-2f38-11eb-9feb-0242ac15000e: Unable to evaluate script while executing activity 'Activity_nodetoken' in the process definition with id 'dciworkflow:1:
Cannot instantiate process definition dciworkflow:1:f44c5806-2f38-11eb-9feb-0242ac15000e: Unable to evaluate script while executing activity 'Activity_nodetoken' in the process definition with id 'dciworkflow:1:f44c5806-2f38-11eb-9feb-0242ac15000e':<eval>:1:0 Expected an operand but found import\nimport java.util.Base64;\n^ in <eval> at line number 1 at column number 0
在这里,我使用java类对字符串中的凭据进行base64编码/解码。我在camundamodeler内部使用的这段代码
。这里我需要将字符串转换为base64编码和解码。请帮助我解决此问题。更改第一行
import java.util.Base64;
到
换第一行
import java.util.Base64;
到
var Base64 = Java.type("java.util.Base64");