I need to create "schedule workflow". Let me say that I pickup the schedule date from workflow form interface to publish a content at 5:00pm tomorrow. Before 5:00pm tomorrow, I should be able to cancel this workflow or change the workflow time. I use time TimeBoundaryEvent but have challenge to change the schedule time. Any idea or suggestion? Thank you in advance.
Solved! Go to Solution.
Hi jboss_user,
ok, so you're using the embedded Activiti in Alfresco. I used Alfresco Process Service, but actually the Activiti engine is similar and shouldn't be the reason, why it works for me, but not for you.
May I ask, what Alfresco version you're using? It looks like you're still using Alfresco Explorer, which is not part of Alfresco anymore since several versions.
Anyway, could it be, that you haven't assigned the Reschedule Publish Task accordingly? Check the assignee parameter and try ${initiator}.
I've tested it with Alfresco Process Services and it worked fine for me, so the task is assigned back to me and shown in my queue. You could also consider trying Activiti Community or even Alfresco Process Services, which is the Enterprise Version of Activiti Community. Both provides you with an easy-to-use web-based workflow and forms designer, and especially allows for most actions an easy configuration by just selecting the appropriate option, e.g. assigning to process initiator.
What about this:
Hope this helps,
Martin
Your diagram is perfectly right since I had similar design:
But the only problem is that the Reschedule Publish Task is no longer in user's task queue once user selects publishing time and date from task "schedule publish task". How does the user change or cancel the task if the task is not in the queue (In other words, how do we interrupt the boundary time event if we can't see the task in the queue):
Thank you for your great answer and provide the detailed design which convinces that I am in the right track.
Thanks again.
Hi jboss_user,
ok, so you're using the embedded Activiti in Alfresco. I used Alfresco Process Service, but actually the Activiti engine is similar and shouldn't be the reason, why it works for me, but not for you.
May I ask, what Alfresco version you're using? It looks like you're still using Alfresco Explorer, which is not part of Alfresco anymore since several versions.
Anyway, could it be, that you haven't assigned the Reschedule Publish Task accordingly? Check the assignee parameter and try ${initiator}.
I've tested it with Alfresco Process Services and it worked fine for me, so the task is assigned back to me and shown in my queue. You could also consider trying Activiti Community or even Alfresco Process Services, which is the Enterprise Version of Activiti Community. Both provides you with an easy-to-use web-based workflow and forms designer, and especially allows for most actions an easy configuration by just selecting the appropriate option, e.g. assigning to process initiator.
Martin,
Thank you so much for your quick and detailed response. Yes, I did use embedded activiti in alfresco but it should be very similar as you said. I am using alfresco community V4.2. We are still using alfresco explorer since we have lots of customization in there but I definitely check assignee parameter and try ${initiator}. It might be the issue. Thank you so much. Will let you know.
Martin,
You are right. I missed assignee. It shows in my queue once I added it.
Great,
happy that it works now.
Martin
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.