[
https://jira.jboss.org/browse/JBPM-2546?page=com.atlassian.jira.plugin.sy...
]
Alejandro Guizar resolved JBPM-2546.
------------------------------------
Assignee: Alejandro Guizar
Resolution: Won't Fix
The issue description fails to consider that a process resource is associated to an
specific process definition, which the URL does not capture. Even if the process
definition information, the usefulness of such a proprietary URL outside action handlers
is debatable.
creating URL with processresource failes
----------------------------------------
Key: JBPM-2546
URL:
https://jira.jboss.org/browse/JBPM-2546
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jBPM 3.2.x
Environment: jBPM 3.2.X, ESB 4.6, AS 5.1
Reporter: Hans Guldager Knudsen
Assignee: Alejandro Guizar
Attachments: Handler.java, LoadResouce.java, ProtocolResourceURLConnection.java
Hi!
If I load a resouce inside an ActionHandler i get an URL with the
"protocolresouce" protocol - eg :
URL resouceUrl =
Thread.currentThread().getContextClassLoader().getResource("resource.txt");
gives me :
processresource://recieve_bussiness_msg/classes/classes/resource.txt
But if I try to create an URL with the same form
URL recreatedUri = new URL(
"processresource://recieve_bussiness_msg/classes/classes/resource.txt" );
I get an :
java.net.MalformedURLException: unknown protocol: processresource
at java.net.URL.<init>(URL.java:574)
It seems that there is no
java.net.URLStreamHandler
to handle the protocol..
I will attach example of how this could be implemented.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira