本文整理了Java中org.jbpm.process.workitem.WorkDefinitionImpl.getPath()
方法的一些代码示例,展示了WorkDefinitionImpl.getPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkDefinitionImpl.getPath()
方法的具体详情如下:
包路径:org.jbpm.process.workitem.WorkDefinitionImpl
类名称:WorkDefinitionImpl
方法名:getPath
暂无
代码示例来源:origin: kiegroup/jbpm
@Test
public void testWorkDefinitionsPathAndFile() throws Exception {
Map<String, WorkDefinitionImpl> repoResults = WorkItemRepository.getWorkDefinitions(getClass().getResource("repository").toURI().toString(),
new String[]{"TestServiceOne"});
assertNotNull(repoResults);
assertFalse(repoResults.isEmpty());
assertEquals(repoResults.size(), 1);
assertNotNull(repoResults.get("TestServiceOne"));
assertNotNull(repoResults.get("TestServiceOne").getPath());
assertTrue(repoResults.get("TestServiceOne").getPath().endsWith("/repository/TestServiceOne"));
assertNotNull(repoResults.get("TestServiceOne").getFile());
assertTrue(repoResults.get("TestServiceOne").getFile().equals("TestServiceOne.wid"));
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend
private static String buildUri(final WorkDefinitionImpl item) {
final String path = null != item.getPath() ? item.getPath() : "";
final String fileName = null != item.getFile() ? item.getFile() : "";
if (StringUtils.isEmpty(path)) {
return null;
}
return path + "/" + fileName;
}
代码示例来源:origin: org.jbpm/org.jbpm.eclipse
private void importWorkDefinition(WorkDefinitionImpl workDef, IFolder resources, IFolder metaInf, IFile workDefinitionsConfig) throws Exception {
String defFile = workDef.getPath() + "/" + workDef.getFile();
IFile file = metaInf.getFile(workDef.getFile());
InputStream inputstream = new URL(defFile).openStream();
String iconFile = workDef.getPath() + "/" + workDef.getIcon();
IFile icon = resources.getFile(workDef.getIcon());
inputstream = new URL(iconFile).openStream();
inputstream = new URL(workDef.getPath() + "/" + dependency).openStream();
if (!libFile.exists()) {
libFile.create(inputstream, true, null);
代码示例来源: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
iconData = iconEncoded;
} else if (null != icon && icon.trim().length() > 0) {
final String iconUrl = workDefinition.getPath() + "/" + icon;
iconData = dataUriProvider.apply(iconUrl);
代码示例来源:origin: org.jbpm/org.jbpm.eclipse
public void selectionChanged(SelectionChangedEvent event) {
importButton.setEnabled(!event.getSelection().isEmpty());
if (!event.getSelection().isEmpty()) {
Object selected = ((StructuredSelection) event.getSelection()).getFirstElement();
if (selected instanceof WorkDefinitionImpl) {
String docs = ((WorkDefinitionImpl) selected).getDocumentation();
if (docs != null) {
if (documentation != null) {
documentation.setUrl(((WorkDefinitionImpl) selected).getPath() + "/" + docs);
}
} else {
if (documentation != null) {
documentation.setText("");
}
}
} else {
if (documentation != null) {
documentation.setText("");
}
}
}
}
});
内容来源于网络,如有侵权,请联系作者删除!