Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Can I combine two workflow step in one click? View modes: 
User avatar
Member
Member
sezai.karatoz-sompojapan.com.tr - 11/18/2011 2:39:18 AM
   
Can I combine two workflow step in one click?
I have a workflow scenario Edit -> Send Approve -> Approve -> Publish ->Archive

So the process works like below;
1. The end user clicks "Add new document"
2. Add some data to new document form.
3. Then click "Save" to save data
4. Then "Send To Approve" button is displaying
5. Finally, the end user clicks "Send to approve" button to send document for approving

I need to combine 3 and 4 in a one click. So when the end user clicks "Save" then the new document will be saved and send to approving.

How can I success this request.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/18/2011 2:59:42 AM
   
RE:Can I combine two workflow step in one click?
Hi,

So, why do you have the 3 and 4 steps? Why don't you just remove one of them if you do not want to have it?

It does not make sense to merge them - use just one instead of two :-)

Best regards,
Juraj Ondrus

User avatar
Member
Member
sezai.karatoz-sompojapan.com.tr - 11/18/2011 3:05:03 AM
   
RE:Can I combine two workflow step in one click?
I can't remove Edit step from Workflow steps.
Also I want to send newly created document to approving.
So firstly I save the document, then I can send to approving.
I want to use save button for saving and sending document to approving

User avatar
Member
Member
sezai.karatoz-sompojapan.com.tr - 11/18/2011 7:24:35 AM
   
RE:Can I combine two workflow step in one click?
Is there any idea to success this?

Juraj, I already try to change "Edit" step in Workflow. But you know "Edit" step can not change nor delete. In workflow I have 4 steps
1. Edit
2. Admin Approve (This is added by me to send document approving)
3. Published
4. Archived

So I want to combine 1 and 2 into one click. Now I click Save to save then I click Send to Approve to send doc to approver.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/18/2011 8:34:38 AM
   
RE:Can I combine two workflow step in one click?
Hi,

In your previous post you mentioned steps 3 and 4.

Edit is a mandatory step. So, if I am getting this right, you just do not want to click the Save button? If so, just don't do it. Click the submit to approval button automatically saves the changes and pushes the document the next step.

Best regards,
Juraj Ondrus

User avatar
Member
Member
sezai.karatoz-sompojapan.com.tr - 11/18/2011 8:42:25 AM
   
RE:Can I combine two workflow step in one click?
Hi,

Only Save button appears in the new document form."Send to Approve" does not appear. After clicking "Save" button, then "Send to Approve" button appears. So the user should click to buttons two times to send document for approving. In my first post, I explained how end user enter a new document. of course that list which in the first post, was not workflow steps list.


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/21/2011 1:04:17 AM
   
RE:Can I combine two workflow step in one click?
Hi,

I got it now! I got confused by your first post.

In this case you need to use a custom event handler, in your case the tree node handler and in the OnAfterInsert event you will need to push the document using the API to appropriate workflow step.

Best regards,
Juraj Ondrus

User avatar
Member
Member
sezai.karatoz-sompojapan.com.tr - 11/22/2011 1:56:36 AM
   
RE:Can I combine two workflow step in one click?
Thanks Juraj,
I succeed this by adding custom event handler.

User avatar
Member
Member
poyanj-yahoo - 1/12/2012 4:41:48 AM
   
RE:Can I combine two workflow step in one click?
Hi,
I am going to do this too but I can not find "CustomTreeNodeHandler" class.
where can I find that class?

thank you.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 1/12/2012 8:04:41 AM
   
RE:Can I combine two workflow step in one click?
Hello.

This class is located in CustomEventHandler project. All steps required for CustomTreeNodeHandler's implementation are described here.

Best Regards,
Radek Macalik

User avatar
Member
Member
poyanj-yahoo - 1/15/2012 1:34:45 AM
   
RE:Can I combine two workflow step in one click?
I dont have that Project.how can I get it?

User avatar
Member
Member
poyanj-yahoo - 1/15/2012 1:43:28 AM
   
RE:Can I combine two workflow step in one click?
I mean I have already checked "C:\ProgramFiles\KenticoCMS\<version_number>\CodeSamples\CustomEventHandler)" but there is no Folder like "CodeSample" in my Source codes.where can I download CustomEventHandler" projects code?

User avatar
Member
Member
poyanj-yahoo - 1/15/2012 3:29:53 AM
   
RE:Can I combine two workflow step in one click?
it's done.I got it.Thank you.