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

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

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

WorkDefinitionImpl.getDocumentation介绍

暂无

代码示例

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend

  1. @Before
  2. public void init() {
  3. when(jbpmWorkDefinition.getName()).thenReturn(NAME);
  4. when(jbpmWorkDefinition.getCategory()).thenReturn(CATWGORY);
  5. when(jbpmWorkDefinition.getDescription()).thenReturn(DESC);
  6. when(jbpmWorkDefinition.getDisplayName()).thenReturn(DISPLAY_NAME);
  7. when(jbpmWorkDefinition.getDocumentation()).thenReturn(DOC);
  8. when(jbpmWorkDefinition.getDefaultHandler()).thenReturn(HANDLER);
  9. when(jbpmWorkDefinition.getPath()).thenReturn(PATH);
  10. when(jbpmWorkDefinition.getIcon()).thenReturn(ICON);
  11. when(dataUriProvider.apply(eq(ICON_PATH))).thenReturn(ICON_DATA);
  12. when(param1.getName()).thenReturn("param1");
  13. when(param1.getType()).thenReturn(new StringDataType());
  14. when(param2.getName()).thenReturn("param2");
  15. when(param2.getType()).thenReturn(new StringDataType());
  16. Set<ParameterDefinition> parameters = new HashSet<ParameterDefinition>(2) {{
  17. add(param1);
  18. add(param2);
  19. }};
  20. when(jbpmWorkDefinition.getParameters()).thenReturn(parameters);
  21. }

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend

  1. workItem.setName(workDefinition.getName());
  2. workItem.setCategory(workDefinition.getCategory());
  3. workItem.setDocumentation(workDefinition.getDocumentation());
  4. workItem.setDescription(workDefinition.getDescription());
  5. workItem.setDefaultHandler(workDefinition.getDefaultHandler());

代码示例来源:origin: org.jbpm/org.jbpm.eclipse

  1. public void selectionChanged(SelectionChangedEvent event) {
  2. importButton.setEnabled(!event.getSelection().isEmpty());
  3. if (!event.getSelection().isEmpty()) {
  4. Object selected = ((StructuredSelection) event.getSelection()).getFirstElement();
  5. if (selected instanceof WorkDefinitionImpl) {
  6. String docs = ((WorkDefinitionImpl) selected).getDocumentation();
  7. if (docs != null) {
  8. if (documentation != null) {
  9. documentation.setUrl(((WorkDefinitionImpl) selected).getPath() + "/" + docs);
  10. }
  11. } else {
  12. if (documentation != null) {
  13. documentation.setText("");
  14. }
  15. }
  16. } else {
  17. if (documentation != null) {
  18. documentation.setText("");
  19. }
  20. }
  21. }
  22. }
  23. });

代码示例来源:origin: kiegroup/drools-wb

  1. myTaskDef.getVersion());
  2. assertNotNull(myTaskDef.getDocumentation());
  3. assertEquals("documentation for sample workitem",
  4. myTaskDef.getDocumentation());

相关文章