提交 3fb2fd19 编写于 作者: F falko.menge

Added workaround to avoid plus signs in BPMN IDs

上级 c9685dbd
......@@ -78,7 +78,7 @@ public class ExchangeSignavioUuidWithNameTransformation extends OryxTransformati
return null;
}
try {
return URLEncoder.encode(name, "UTF-8");
return URLEncoder.encode(name.replace(' ', '_'), "UTF-8");
} catch (UnsupportedEncodingException e) {
// Should never happen :-)
throw new IllegalStateException("Wired, platform couldn't encode UTF-8", e);
......
package org.activiti.cycle.impl.transform.signavio;
import static org.junit.Assert.*;
import org.junit.Test;
public class ExchangeSignavioUuidWithNameTransformationTest {
@Test
public void testAdjustNamesForEngine() {
String name = "Send rejection e-mail";
String actual = ExchangeSignavioUuidWithNameTransformation.adjustNamesForEngine(name);
assertEquals("Send_rejection_e-mail", actual);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册