本文整理了Java中org.jbpm.process.workitem.WorkDefinitionImpl.getParameters()
方法的一些代码示例,展示了WorkDefinitionImpl.getParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkDefinitionImpl.getParameters()
方法的具体详情如下:
包路径:org.jbpm.process.workitem.WorkDefinitionImpl
类名称:WorkDefinitionImpl
方法名:getParameters
暂无
代码示例来源:origin: kiegroup/jbpm
assertEquals("TestServiceOne", testServiceOne.getDisplayName());
assertEquals("Test Service One", testServiceOne.getDescription());
assertEquals(3, testServiceOne.getParameters().size());
assertEquals("testserviceone.png", testServiceOne.getIcon());
assertEquals("MyTestServices", testServiceOne.getCategory());
assertEquals("TestServiceFour", testServiceFour.getDisplayName());
assertEquals("Test Service Four", testServiceFour.getDescription());
assertEquals(3, testServiceFour.getParameters().size());
assertEquals(0, testServiceFour.getResults().size());
assertEquals("1.0", testServiceFour.getVersion());
assertEquals("TestServiceFour2", testServiceFour2.getDisplayName());
assertEquals("Test Service Four2", testServiceFour2.getDescription());
assertEquals(2, testServiceFour2.getParameters().size());
assertEquals(2, testServiceFour2.getResults().size());
assertTrue(testServiceFour2.getResult("c").getType() instanceof ListDataType);
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend
@Before
public void init() {
when(jbpmWorkDefinition.getName()).thenReturn(NAME);
when(jbpmWorkDefinition.getCategory()).thenReturn(CATWGORY);
when(jbpmWorkDefinition.getDescription()).thenReturn(DESC);
when(jbpmWorkDefinition.getDisplayName()).thenReturn(DISPLAY_NAME);
when(jbpmWorkDefinition.getDocumentation()).thenReturn(DOC);
when(jbpmWorkDefinition.getDefaultHandler()).thenReturn(HANDLER);
when(jbpmWorkDefinition.getPath()).thenReturn(PATH);
when(jbpmWorkDefinition.getIcon()).thenReturn(ICON);
when(dataUriProvider.apply(eq(ICON_PATH))).thenReturn(ICON_DATA);
when(param1.getName()).thenReturn("param1");
when(param1.getType()).thenReturn(new StringDataType());
when(param2.getName()).thenReturn("param2");
when(param2.getType()).thenReturn(new StringDataType());
Set<ParameterDefinition> parameters = new HashSet<ParameterDefinition>(2) {{
add(param1);
add(param2);
}};
when(jbpmWorkDefinition.getParameters()).thenReturn(parameters);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend
workItem.setIconDefinition(iconDefinition);
workItem.setParameters(parseParameters(workDefinition.getParameters()));
内容来源于网络,如有侵权,请联系作者删除!