Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Workflow Transition History
Hello Everybody
How can I get a list of all the transitions done for a special Workflow Instance ?
How can I get a list of all the transitions done for a special Workflow Instance ?
Hi,
which version of liferay you are using ? you can try with the below API
WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId, workflowInstanceId, logTypes, start, end, orderByComparator);
which version of liferay you are using ? you can try with the below API
WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId, workflowInstanceId, logTypes, start, end, orderByComparator);
No , this method don not return any information about done transitions
When viewing the workflow task, do you see the transitions in the bottom activities? If so, it uses this same API. Make sure you have the right ID and have WorkflowLog.TRANSITION in the logtypes.
No, I do not see any transition in activity list
And in other hand for following code it print zero for size of log list
And in other hand for following code it print zero for size of log list
List<integer> logTypes = new ArrayList<integer>();
logTypes.add( WorkflowLog.TRANSITION);
List<workflowlog> transitionLog = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance( companyId, workflowInstanceId, logTypes , start, end, orderByComparator );
System.out.println(transitionLog .size()); // print 0
</workflowlog></integer></integer>
What version of Liferay are you using?
Are you using Kaleo?
How are tasks transitioned?
Are you using Kaleo?
How are tasks transitioned?
Liferay Version 7.1
Yes I'm use Kaleo
Transitions has been done by this utility:
Yes I'm use Kaleo
Transitions has been done by this utility:
WorkflowTaskManagerUtil.completeWorkflowTask( companyId, userId, taskId, transition, workflowComment, workflowContext );
hm...try adding this log type to your query:
WorkflowLog.TASK_COMPLETION
WorkflowLog.TASK_COMPLETION
Actually if nothing shows up in the activity list on the bottom of the workflow tasks, I don't think it'll come up in the API either.I would just double check if there's anything added to the KaleoLog table in the DB when you complete your task to see if it's an issue retrieving the log, or adding the log.
I think no any data saved in DB for Transitions
In fact the problem is in adding log
According to attachment image that is a screenshot of KaleoLog Table, there is not any Transition log
How can I log it ? Does it have a separate utility ?
In fact the problem is in adding log
According to attachment image that is a screenshot of KaleoLog Table, there is not any Transition log
How can I log it ? Does it have a separate utility ?
Attachments:
No any idea?
Hi , Have u checked in Control Panel -> Cofiguration - > workflow->monitoring , here u can check whether for given workflow instance activities are showing up or not
Hi Mohammed Yasin
In monitoring and in Activity section there is no log for Transitions, They log only tasks and states
As you can see in the attachment
In monitoring and in Activity section there is no log for Transitions, They log only tasks and states
As you can see in the attachment
Attachments:
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™