[jBPM Development] - Extending HistorySession
by tcr
Hi,
some time ago I asked in the user forum about experiences extending the history-session.
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=161482
To me it seems that there are some public getters missing so that you can actually extend the historysession. In addition the binding for the HistorySessionChain is missing.
Is there a way that you could add public getters for the members of the history events in the next release?
Otherwise it is really hard and ugly to implement a custom history (e.g. to send customer specific audit-data to a backend system)
What I mean are getters like....
Event: ActivityEnd, DecisionEnd
Public getter for: transitionName
Event: TaskActivityStart, TaskAssign, TaskCreated, TaskDelete, TaskUpdated
Public getter for: task
Event: TaskAssign
Public getter for: assignee
Event: TaskComplete
Public getter for: outcome
Event: TaskDelete
Public getter for: reason
Event: VariableCreate, VariableUpdate
Public getter for: variable
etc...
That would be really great because we could use jBPM poperly :-)
Regards
Torsten
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259306#4259306
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259306
15 years, 1 month
[jBPM Development] - Timer dueDate / dueDateTime
by vchira
Hi. I have a problem with jbpm Timers. First i don't understand why you can't have a timer for Transition that are going to or from a java task. Second problem that I have is with dueDate /dueDateTime... i found no way to specify the dueDate als java.util.Date. I find this weird because the dueDate attribute in TimerImpl is of type Date! I think this Problem can be fixed with the following code in TimerImpl:
| public void setDueDateDescription(String dueDateDescription) {
|
| ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
| Object dueDateEvaluated = scriptManager.evaluateExpression(dueDateDescription, null);
| if(dueDateEvaluated instanceof Date)
| {
| dueDate =dueDateEvaluated;
| return;
| }
| dueDateDescription = (String) dueDateEvaluated;
|
| Duration duration = new Duration(dueDateDescription);
| Date now = Clock.getCurrentTime();
|
| ...........................................
| }
|
a better solution would be to add a dueDateTimeDefinition in TimerDefinitionImpl and in JobParser.parseTimerDefinition() just set the definition there. after that in ScopeInstanceImpl.createTimer() evaluate dueDateTimeDefinition and if the evaluation returns a Date just set it in dueDate otherwise pare dueDateTimeDefinition as a date String..like you do now in JobParser.parseTimerDefinition().
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259183#4259183
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259183
15 years, 1 month