Make a work flow action for a specific asset (content type)

ediego's Avatar

ediego

19 Nov, 2015 12:53 PM

Is there any way to make a workflow behave differently if editing a specific asset (content type).

I want to add an extra approval step if someone is editing a particular page asset content type. In this case its for home pages on my site. I want to add an extra approval step.

  1. 1 Posted by Ryan Griffith on 19 Nov, 2015 02:28 PM

    Ryan Griffith's Avatar

    Hi,

    For editing, the only way to accomplish this would be to apply an additional Workflow to the folder and have your user select the appropriate workflow for the asset.

    On the other hand, for creation you can supply a specific Workflow to run when the asset is created. This is only run on creation; however.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by ediego on 19 Nov, 2015 02:36 PM

    ediego's Avatar

    I've tried the multiple workflow approach, but then it relies on the users selecting the right workflow.

    My main intention with the workflow is to prevent users from copying home page assets and using them as internal pages. They already don't have access to "Create" a home page asset.

    This may be something that requires the creation of a custom workflow trigger. Which i believe it is possible to do? Is there any documentation or examples that might assist me in this?

  3. 3 Posted by Ryan Griffith on 19 Nov, 2015 03:10 PM

    Ryan Griffith's Avatar

    Hi,

    I can definitely see where there could be issues when relying on the end-user. Unfortunately, there is currently no out of the box in way to apply a specific Workflow once the asset has been created, only provide multiple options.

    This may be something that requires the creation of a custom workflow trigger. Which i believe it is possible to do? Is there any documentation or examples that might assist me in this?

    Unlike Publish Triggers and Asset Factory Plugins, we do not expose the Workflow Trigger API due to their tight dependency on private code, as opposed to our public API.

    That being said, you may be able to contract with our Services team to assist you with writing a custom Workflow trigger. Let me know if you would be interested and I can have someone get in touch.

    Please let me know if you have any questions.

    Thanks!

  4. 4 Posted by ediego on 19 Nov, 2015 07:01 PM

    ediego's Avatar

    I see in the CMS there is a way to add a trigger under the Manage Workflow Triggers option. There is absolutely no way for me to be able to develop a tribber myself? The only options is to use your services team?

    Id it possible that a trigger like the one I am describing already exists?

  5. 5 Posted by Ryan Griffith on 01 Dec, 2015 06:25 PM

    Ryan Griffith's Avatar

    Hi,

    My apologies for the delayed response to your discussion.

    The screen to manage workflow triggers is mainly just a way to register triggers for use within the workflow builder (ie the triggers dropdown when working with actions).

    Id it possible that a trigger like the one I am describing already exists?

    Unfortunately, there is no existing trigger that would accomplish what you are looking for. There is a sort of similar trigger, but it assigns to a step if the previous step was executed by a specific user. In your case, you would need to assign to a step if the asset is a specific content type.

    As I mentioned, we do not expose the workflow trigger API due to its tight integration with the core Cascade application. That being said, let me look into this a bit to see if perhaps I can compile such a workflow trigger for you to drop into Cascade. I will be in touch as soon as I have additional information.

    Please let me know if you have any questions.

    Thanks!

  6. 6 Posted by ediego on 01 Dec, 2015 06:27 PM

    ediego's Avatar

    That would be great and much appreciated.

  7. 7 Posted by Ryan Griffith on 01 Dec, 2015 06:44 PM

    Ryan Griffith's Avatar

    Hi,

    I had a chance to speak with the developers and, unfortunately, a custom trigger would not be feasible because the workflow trigger API is not public. As such, we can not guarantee that changes to the API going forward would be backwards compatible with custom triggers.

    That being said, I highly recommend posting a suggestion on our Idea Exchange if you would like such a feature to be considered for a future release.

    Please let me know if you have any questions.

    Thanks!

  8. Ryan Griffith closed this discussion on 22 Dec, 2015 07:55 PM.

  9. ediego re-opened this discussion on 04 Jan, 2016 03:04 PM

  10. 8 Posted by ediego on 04 Jan, 2016 03:04 PM

    ediego's Avatar

    How can i contact the Services team to assist in creating this workflow trigger.

  11. 9 Posted by Ryan Griffith on 04 Jan, 2016 03:52 PM

    Ryan Griffith's Avatar

    Hi Emil,

    I've included Penny from our Services team so she is aware of your request. She will be in touch with you shortly.

    Please let me know if you have any questions.

    Thanks!

  12. 10 Posted by Penny on 04 Jan, 2016 04:00 PM

    Penny's Avatar

    Hi Emil,

    I have reviewed the information in this ticket. I will provide you a quote once I consult a developer. I should be able to send over this information today. Feel free to call me if you would like to discuss further prior to me sending a quote. 678.904.6900 ext 255

  13. 11 Posted by ediego on 04 Jan, 2016 06:41 PM

    ediego's Avatar

    sounds good. Look forward to hearing from you today.

    thanks.

    Emil Diego // Director, Web and Digital Communications

    Division of University Communications
    1320 South Dixie Highway
    Gables One Tower Suite 720
    Coral Gables, FL 33146
    email: [email blocked]
    phone: 305-284-5130

    ________________________________

  14. 12 Posted by Penny on 04 Jan, 2016 10:31 PM

    Penny's Avatar

    Hi Emil,

    I was consulting with engineering and the following are what I have found out.
    1) There is no open API for creating this trigger. This means that Miami would have to maintain this code and we can not guarantee that future upgrades of Cascade Server would be compatible. This may mean that it would have to be redeveloped if there was a change to workflow system in the future.
    2) Workflow improvements have been on the roadmap for a while. The changes that have been discussed may cause any code added to no longer work as mentioned in #1. I can not guarantee how far down the road that may be or if it would actually break the code.
    3) We are booked for January, we could not do the project until February. We could do this for 30 hours @ $200/hour, so it would be $6,000.

    Please feel free to give me a call if you would like me to discuss further or let me know if you would like to proceed with me sending over an agreement.

    Have you considered just making a Copy Approval workflow for your entire site? I don't know how much copying happens so I don't know what sort of overhead this may cause.

    Just let me know. Thanks!

  15. 13 Posted by ediego on 07 Jan, 2016 01:05 PM

    ediego's Avatar

    Penny,

    Do you have some time today to discuss? There are a lot of caveats here and I want to make sure I understand the situation completely before deciding if I want to move forward with this.

    thanks.

    Emil Diego // Director, Web and Digital Communications

    Division of University Communications
    1320 South Dixie Highway
    Gables One Tower Suite 720
    Coral Gables, FL 33146
    email: [email blocked]
    phone: 305-284-5130

    ________________________________

  16. 14 Posted by Penny on 11 Jan, 2016 09:29 PM

    Penny's Avatar

    Hi Emil,

    Just following up. I left you a voicemail on Thursday. I have some spare time to talk tomorrow if you would like. Just let me know.

  17. Penny closed this discussion on 11 Jan, 2016 09:29 PM.

  18. Penny re-opened this discussion on 11 Jan, 2016 09:30 PM

  19. 15 Posted by Penny on 11 Jan, 2016 09:30 PM

    Penny's Avatar

    I didn't mean to close this ticket. Sorry! Feel free to re-open.

  20. Ryan Griffith closed this discussion on 05 Feb, 2016 04:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac