[JBoss Microcontainer Development] New message: "Trivial vfs-3.0.x manifest access fails"
by Thomas Diesler
User development,
A new message was posted in the thread "Trivial vfs-3.0.x manifest access fails":
http://community.jboss.org/message/529834#529834
Author : Thomas Diesler
Profile : http://community.jboss.org/people/thomas.diesler@jboss.com
Message:
--------------------------------------------------------------
When trying to access the manifest from a jar, I get
Caused by: java.io.FileNotFoundException: /home/tdiesler/svn/jboss-osgi/trunk/testsuite/example/target/test-libs/example-simple.jar/META-INF/MANIFEST.MF (Not a directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:67)
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:225)
at org.jboss.osgi.vfs30.VirtualFileAdaptor30.openStream(VirtualFileAdaptor30.java:106)
at org.jboss.osgi.vfs.VFSUtils.getManifest(VFSUtils.java:49)
at org.jboss.osgi.spi.util.BundleInfo.<init>(BundleInfo.java:109)
Essentially I do
VirtualFile root = VFS.getChild(url);
VirtualFile manifest = root.getChild(JarFile.MANIFEST_NAME);
InputStream stream = manifest.openStream();
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529834#529834
16 years, 1 month
[jBPM] New message: "Re: getting name of leaving transition from decision node (jbpm 4.0)"
by Maciej Swiderski
User development,
A new message was posted in the thread "getting name of leaving transition from decision node (jbpm 4.0)":
http://community.jboss.org/message/529830#529830
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
I completely understand your goals but I think it can be achieved differently than querying for outgoing transition of a given node. Since you have to modify the diagram I would try something like this:
Add event listener to the start node on event end that will set required variables:
<on event="end">
<event-listener class="com.company.process.StartupEventListener">
<field name="taskOptionsAsVariable"><string value="selected,rejected"/></field>
</event-listener>
</on>
Create class for that event listener:
public class StartupEventListener implements EventListener {
private String taskOptionsAsVariable;
@Override
public void notify(EventListenerExecution execution) throws Exception {
if (taskOptionsAsVariable != null) {
String[] options = taskOptionsAsVariable.split(",");
execution.createVariable("selectionOptions", Arrays.asList(options));
}
}
}
Since there is no support (afaik) for collections and arrays use comma separated values for possible options to choose in the task form later in the process - same as outgoing transitions for decision point.
So after first release you don't need to change anything in the code, just the diagram.
Hope that can give you an alternative.
Cheers,
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529830#529830
16 years, 1 month
[jBPM] New message: "Re: Problems with jbpm-console"
by Robert Weissmann
User development,
A new message was posted in the thread "Problems with jbpm-console":
http://community.jboss.org/message/529824#529824
Author : Robert Weissmann
Profile : http://community.jboss.org/people/wir33658
Message:
--------------------------------------------------------------
Hi,
had the same problems and used this and it worked.
At the end of my code I also use
repositoryService.deleteDeploymentCascade(deploymentId);
to even delete the previous deployment.
But when I change the jPDL-File (and accordingly the Image by saving it in Eclipse) and do the deployment again, the old image shows up when I press the diagram-button in the jbpm-console (I started a new process).
I checked the DB and it seems as the new image was even deployed (JBPM4_LOB column).
Any idea what the problem might be ?
Cheers, Rob.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529824#529824
16 years, 1 month
[jBPM] New message: "Re: Unable to send mail"
by ciccio ciccio
User development,
A new message was posted in the thread "Unable to send mail":
http://community.jboss.org/message/529821#529821
Author : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega
Message:
--------------------------------------------------------------
Thanks for reply but it still doesnt work
Cannot send mail, now retrying: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first.
I have found another thread where it exsplains that Jbpm doesnt support SSL transport and so i couldnt work with smtp.gmail. Im waiting for an answer from Ronald while im implementing a local server smtp to work with.
Do you use smtps with smtp of gmail?
TIA
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529821#529821
16 years, 1 month