-
1. Re: can I disable git-based VFS and Maven from kie-wb [jBPM6.2.0.Final]
happyhippo Sep 10, 2015 10:34 AM (in response to stevenhu)Hi,
we had a similar issue and we solved it as following:
First, we tried to replace the DeploymentService with the VFSDeploymentService (Chapter 20. Integration):
@Vfs - VFSDeploymentDService that allows to deploy assets directly from VFS (Virtual File System) that is provided by UberFire framework. Due to that fact VFSDeploymentService and VFSDeploymentUnit are not bundled with jbpm core modules but with jbpm-console-ng modules.
Unfortunately this did not work, mainly because of some OSGI stuff :/
So our second solution is that:
Assuming you have the compiled KJAR from jbpm-console (or build the jar yourself with bpmn2-files from filesystem, donf forget the kmodule.xml, kie-deployment-descriptor.xml etc) saved in a filesystem / some server, you have to create your own modified version of Deploymentservice.
We basically copied the existing one and replaced the Maven loader with our own:
// MavenRepository repository = getMavenRepository();
// repository.resolveArtifact(releaseId.toExternalForm());
loadProcessDefinitionsFromJar(ks);In this method you just have to add your KJar to the internal repository like so:
URL url = new URL("file:///somepathOrUrl");
URLConnection urlConnection = null;
urlConnection = url.openConnection();
urlConnection.setConnectTimeout(10);
InputStream processDefinitions = urlConnection.getInputStream();
...
Resource res = ks.getResources().newInputStreamResource(processDefinitions);
ks.getRepository().addKieModule(res);
Instead of using Inputstreams, one also can use newFileSystemResource, newUrlResource or whatever you like.
hth,
dan
-
2. Re: can I disable git-based VFS and Maven from kie-wb [jBPM6.2.0.Final]
stevenhu Sep 10, 2015 12:31 PM (in response to happyhippo)Thank your very much, Dan. It is very helpful.
So in runtime, the Git repository is not necessary if you don't use the kie-wb to draw the diagram, correct?
Thanks again,
Steven
-
3. Re: can I disable git-based VFS and Maven from kie-wb [jBPM6.2.0.Final]
happyhippo Sep 11, 2015 3:50 AM (in response to stevenhu)Hi,
It is possible not to use neither the git repo nor the jbpm-console at runtime, as long as you get your bpmn2-file's content somehow.
dan