本文整理了Java中org.jbpm.process.workitem.WorkDefinitionImpl.getName()
方法的一些代码示例,展示了WorkDefinitionImpl.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkDefinitionImpl.getName()
方法的具体详情如下:
包路径:org.jbpm.process.workitem.WorkDefinitionImpl
类名称:WorkDefinitionImpl
方法名:getName
暂无
代码示例来源:origin: kiegroup/jbpm
workDefinitions.put(workDefinition.getName(), workDefinition);
代码示例来源:origin: kiegroup/jbpm
assertEquals("TestServiceOne", testServiceOne.getName());
assertEquals("TestServiceOne", testServiceOne.getDisplayName());
assertEquals("Test Service One", testServiceOne.getDescription());
assertEquals("TestServiceFour", testServiceFour.getName());
assertEquals("TestServiceFour", testServiceFour.getDisplayName());
assertEquals("Test Service Four", testServiceFour.getDescription());
assertEquals("TestServiceFour2", testServiceFour2.getName());
assertEquals("TestServiceFour2", testServiceFour2.getDisplayName());
assertEquals("Test Service Four2", testServiceFour2.getDescription());
assertEquals("TestServiceFive", testServiceFive.getName());
assertEquals("TestServiceFive", testServiceFive.getDisplayName());
assertNull(testServiceFive.getDependencies());
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend
@SuppressWarnings("unchecked")
private static Map<String, WorkDefinitionImpl> parseJBPMWorkItemDefinitions(final String content,
final Function<String, String> dataUriProvider) {
final List<Map<String, Object>> workDefinitionsMaps = (List<Map<String, Object>>) WidMVELEvaluator.eval(content);
final Map<String, WorkDefinitionImpl> result = new HashMap<>(workDefinitionsMaps.size());
for (Map<String, Object> workDefinitionMap : workDefinitionsMaps) {
if (workDefinitionMap != null) {
String origWidName = ((String) workDefinitionMap.get("name")).replaceAll("\\s", "");
Matcher widNameMatcher = UNICODE_WORDS_PATTERN.matcher(origWidName);
if (widNameMatcher.matches()) {
final WorkDefinitionImpl workDefinition = parseMVELWorkItemDefinition(workDefinitionMap,
dataUriProvider,
widNameMatcher.group());
result.put(workDefinition.getName(),
workDefinition);
} else {
LOG.error("The work item has an invalid name [ " +
workDefinitionMap.get("name") + "]." +
"It must contain words only, skipping it.");
}
}
}
return result;
}
代码示例来源:origin: org.jbpm/jbpm-flow-builder
workDefinitions.put(workDefinition.getName(), workDefinition);
代码示例来源:origin: org.kie.guvnor/guvnor-workitems-editor-backend
final PortableWorkDefinition wid = new PortableWorkDefinition();
final WorkDefinitionImpl wd = (WorkDefinitionImpl) entry.getValue();
wid.setName( wd.getName() );
wid.setDisplayName( wd.getDisplayName() );
wid.setParameters( convertWorkItemParameters( entry.getValue().getParameters() ) );
代码示例来源:origin: kiegroup/drools-wb
workDefinitions.put(workDefinition.getName(),
workDefinition);
代码示例来源:origin: org.drools/drools-wb-workitems-editor-backend
workDefinitions.put(workDefinition.getName(),
workDefinition);
代码示例来源:origin: org.drools/drools-wb-workitems-editor-backend
@Override
public Set<PortableWorkDefinition> loadWorkItemDefinitions(final Path path) {
final Map<String, WorkDefinition> workDefinitions = new HashMap<String, WorkDefinition>();
try {
//Load WorkItemDefinitions from VFS
final Path projectRoot = moduleService.resolveModule(path).getRootPath();
workDefinitions.putAll(resourceWorkDefinitionsLoader.loadWorkDefinitions(projectRoot));
//Load WorkItemDefinitions from ConfigurationService
workDefinitions.putAll(configWorkDefinitionsLoader.loadWorkDefinitions());
//Copy the Work Items into Structures suitable for GWT
final Set<PortableWorkDefinition> workItems = new HashSet<PortableWorkDefinition>();
for (Map.Entry<String, WorkDefinition> entry : workDefinitions.entrySet()) {
final PortableWorkDefinition wid = new PortableWorkDefinition();
final WorkDefinitionImpl wd = (WorkDefinitionImpl) entry.getValue();
wid.setName(wd.getName());
wid.setDisplayName(wd.getDisplayName());
wid.setParameters(convertWorkItemParameters(entry.getValue().getParameters()));
wid.setResults(convertWorkItemParameters(entry.getValue().getResults()));
workItems.add(wid);
}
return workItems;
} catch (Exception e) {
throw ExceptionUtilities.handleException(e);
}
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public Set<PortableWorkDefinition> loadWorkItemDefinitions(final Path path) {
final Map<String, WorkDefinition> workDefinitions = new HashMap<String, WorkDefinition>();
try {
//Load WorkItemDefinitions from VFS
final Path projectRoot = moduleService.resolveModule(path).getRootPath();
workDefinitions.putAll(resourceWorkDefinitionsLoader.loadWorkDefinitions(projectRoot));
//Load WorkItemDefinitions from ConfigurationService
workDefinitions.putAll(configWorkDefinitionsLoader.loadWorkDefinitions());
//Copy the Work Items into Structures suitable for GWT
final Set<PortableWorkDefinition> workItems = new HashSet<PortableWorkDefinition>();
for (Map.Entry<String, WorkDefinition> entry : workDefinitions.entrySet()) {
final PortableWorkDefinition wid = new PortableWorkDefinition();
final WorkDefinitionImpl wd = (WorkDefinitionImpl) entry.getValue();
wid.setName(wd.getName());
wid.setDisplayName(wd.getDisplayName());
wid.setParameters(convertWorkItemParameters(entry.getValue().getParameters()));
wid.setResults(convertWorkItemParameters(entry.getValue().getResults()));
workItems.add(wid);
}
return workItems;
} catch (Exception e) {
throw ExceptionUtilities.handleException(e);
}
}
代码示例来源:origin: org.kie.guvnor/guvnor-workitems-editor-backend
workDefinition.setDependencies( ( (List<String>) workDefinitionMap.get( "dependencies" ) ).toArray( new String[ 0 ] ) );
workDefinitions.put( workDefinition.getName(),
workDefinition );
代码示例来源:origin: org.jbpm/org.jbpm.eclipse
for (WorkDefinitionImpl workDef: ((Category) o).getWorkDefinitions()) {
importWorkDefinition(workDef, folder, metaInf, workDefinitionsConfig);
workDefs.put(workDef.getName(), workDef);
workDefs.put(((WorkDefinitionImpl) o).getName(), (WorkDefinitionImpl) o);
for (WorkDefinitionImpl def: workDefs.values()) {
if (def.getDefaultHandler() != null) {
content += EOL + " \"" + def.getName() + "\" : new "
+ def.getDefaultHandler().replaceFirst("[^()]+$", "$0()") + ",";
newContent += EOL + " \"" + def.getName() + "\" : new "
+ def.getDefaultHandler().replaceFirst("[^()]+$", "$0()") + ",";
代码示例来源: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.setName(workDefinition.getName());
workItem.setCategory(workDefinition.getCategory());
workItem.setDocumentation(workDefinition.getDocumentation());
代码示例来源:origin: kiegroup/drools-wb
myTaskDef.getName());
assertNotNull(myTaskDef.getParameter("MyFirstParam"));
assertNotNull(myTaskDef.getParameter("MySecondParam"));
内容来源于网络,如有侵权,请联系作者删除!