org.jbpm.process.workitem.WorkDefinitionImpl.getDisplayName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.jbpm.process.workitem.WorkDefinitionImpl.getDisplayName()方法的一些代码示例,展示了WorkDefinitionImpl.getDisplayName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkDefinitionImpl.getDisplayName()方法的具体详情如下:
包路径:org.jbpm.process.workitem.WorkDefinitionImpl
类名称:WorkDefinitionImpl
方法名:getDisplayName

WorkDefinitionImpl.getDisplayName介绍

暂无

代码示例

代码示例来源:origin: kiegroup/jbpm

assertNotNull(testServiceOne);
assertEquals("TestServiceOne", testServiceOne.getName());
assertEquals("TestServiceOne", testServiceOne.getDisplayName());
assertEquals("Test Service One", testServiceOne.getDescription());
assertEquals(3, testServiceOne.getParameters().size());
assertNotNull(testServiceFour);
assertEquals("TestServiceFour", testServiceFour.getName());
assertEquals("TestServiceFour", testServiceFour.getDisplayName());
assertEquals("Test Service Four", testServiceFour.getDescription());
assertEquals(3, testServiceFour.getParameters().size());
assertNotNull(testServiceFour2);
assertEquals("TestServiceFour2", testServiceFour2.getName());
assertEquals("TestServiceFour2", testServiceFour2.getDisplayName());
assertEquals("Test Service Four2", testServiceFour2.getDescription());
assertEquals(2, testServiceFour2.getParameters().size());
assertNotNull(testServiceFive);
assertEquals("TestServiceFive", testServiceFive.getName());
assertEquals("TestServiceFive", testServiceFive.getDisplayName());
assertNull(testServiceFive.getDependencies());

代码示例来源:origin: org.kie.guvnor/guvnor-workitems-editor-backend

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() ) );

代码示例来源: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.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.setDescription(workDefinition.getDescription());
workItem.setDefaultHandler(workDefinition.getDefaultHandler());
workItem.setDisplayName(workDefinition.getDisplayName());

相关文章