本文整理了Java中org.jbpm.process.workitem.WorkDefinitionImpl.getFile()
方法的一些代码示例,展示了WorkDefinitionImpl.getFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkDefinitionImpl.getFile()
方法的具体详情如下:
包路径:org.jbpm.process.workitem.WorkDefinitionImpl
类名称:WorkDefinitionImpl
方法名:getFile
暂无
代码示例来源: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();
if (!file.exists()) {
for (String s: ss) {
if (!found && s.trim().startsWith("drools.workDefinitions")) {
if (!s.contains(workDef.getFile())) {
s += " " + workDef.getFile();
output += EOL + "drools.workDefinitions = " + workDef.getFile();
内容来源于网络,如有侵权,请联系作者删除!