Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用camunda modeler执行base64编码/解码时出错_Java_Base64_Camunda_Camunda Modeler - Fatal编程技术网

Java 使用camunda modeler执行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:

使用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: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");