[JBoss Tools Users] - whose bug is this(where do I report it?)
by deanhiller
In my book, all nullpointers are bugs...I hit some kind of drools bug. Is this from jboss tools or??....
| java.lang.NullPointerException
| at org.drools.eclipse.refactoring.DRLProjectDetector.detect(DRLProjectDetector.java:39)
| at org.drools.eclipse.refactoring.DRLProjectDetector.detect(DRLProjectDetector.java:26)
| at org.drools.eclipse.refactoring.RuleSourceFieldRenameParticipant.checkConditions(RuleSourceFieldRenameParticipant.java:64)
| at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:257)
| at org.eclipse.ltk.core.refactoring.Refactoring.checkAllConditions(Refactoring.java:160)
| at org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper$Operation.run(RefactoringExecutionHelper.java:80)
| at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
| at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
| at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
| at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
| at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
| at org.eclipse.jface.operation.ModalContext$ModalContextThread.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256061#4256061
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256061
16 years, 9 months
[jBPM Users] - JBPM 4.0 HistoryEvent, HistorySession
by tcr
Hi,
we need to send emails and log information upon certain events (e.g a reassignment or change of priority).
All this is available as history events, so we thought implementing a custom history session and add this to the jbpm-config. As it turns out the history events do not expose their information (e.g. the execution they were fired from).
Is there a way to get the execution from a history event in a custom event session? Would it be possible to add a method getExecution into HistoryEvent in the next release, or did I miss something?
example:
| package com.test;
|
| import org.jbpm.pvm.internal.history.HistoryEvent;
| import org.jbpm.pvm.internal.history.HistorySession;
| import org.jbpm.pvm.internal.history.events.TaskAssign;
|
| public class NotificationListener implements HistorySession {
| public void process(HistoryEvent historyEvent) {
|
| if (historyEvent instanceof TaskAssign) {
| //User Assigned!
| TaskAssign taskAssign = (TaskAssign) historyEvent;
|
| //Nothing to get from taskAssign
| //Nothing visible from this package
| }
| }
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256069#4256069
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256069
16 years, 9 months