HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


How does Workflows work?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#91908 (In Topic #18459)
Avatar

Community saint

I installed workflows Add-On in local install of 9.0.2 and defined a default test workflow (called test work flow 1) with 3 steps (Step 1,Step 2, Step 3) and asigned Admins to all three approval stages but when I add a Gallery I see nowhere to attach a workflow to it? Also when submitting an image to a gallery it asks nothing but "Validated" so how/where does the workflow get applied and used?
Back to the top
 
Posted
Rating:
#91910
Avatar

Ah. It's quite possible that this has broken in v9 (or even v8). The override code has to latch onto the cms_galleries.php UI, but that's very fragile and prone to breakage if the main file is changed.

It would be good for us to integrate workflows across all content types as a proper feature, then it could be maintained better too.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91912
Avatar

Community saint

I would love it if workflows was integrated especially in the Catalogues area. Which is actually why I installed it to play with as i wanted to get a feel and see if I could extend it to Catalogues somehow.
Back to the top
 
Posted
Rating:
#91913
Avatar

If you take a look at the gallery file overrides you should get an idea how it works. It basically does some string replaces on the original files to inject some new code. Workflows is built on top of validation -- becoming validated is the final action at the end of the workflow.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91915
Avatar

Community saint

Yea I was looking at the code and i have an idea how it works. I'll try and sole why its not workin galleries a little later and post the fix.
Back to the top
 
Posted
Rating:
#91960
Avatar

Community saint

Working on this just now. Should have it fixed soon and will add to traker with fix when done. Will also do a GIT commit
Back to the top
 
Posted
Rating:
#91962
Avatar

Community saint

Well I got the workflow stuff working all right while adding images but I am pullin my hair out trying to get the part where you choose the work flow to add to gallery to show up. Will update when I have figured it out.
Back to the top
 
Posted
Rating:
#91963
Avatar

I don't remember adding galleries having one, but I didn't write this so I may be wrong.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#91965
Avatar

Community saint

Yes when you add a gallery you can choose which workflow to apply to it. I believe the problem seems to lie with this function:


Code

has_actual_page_access(get_member(), "admin_workflow", get_module_zone("admin_workflow"));

Although I am logged in as admin it is not recognizing me as having page access for some reason. Anyway I am not working on it right now and will return to it later.
Back to the top
 
Posted
Rating:
#91980
Avatar

A quick code scan tells me that if a workflow isn't being returned by get_all_workflows() (as called in workflow_choose_ui) then that would also cause it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#92002
Avatar

Community saint

Ahh you're right.

So suddenly Crept up a new problem when I went to workflows in Admin (to double check i have more than one lol) and I get a call to undefined function error I did not get before: get_page_title()  and a quick scan of my v9 install shows that does not exist anymore?

So now I gotta fix the couple of spots workflows calls for it.
Back to the top
 
Posted
Rating:
#92004
Avatar

Oh, that is now get_screen_title. Odd that that code didn't update.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#92007
Avatar

Community saint

Actually I think maybe it did. I tyhink I was comparing  v8 copy of workflows with v9 and saved the v8 version into the wrong place lol
Back to the top
 
Posted
Rating:
#92008
Avatar

Community saint

Ah I am making a mess of things lol
Back to the top
 
Posted
Rating:
#92009
Avatar

Community saint

So I reinstalled workflows and added the fix I did to the front section and it turns out all my trying to figure out why the back section wasn't working was a waste of time as it was my own sillyness. lol anyway tracker issue added with fix attached:

0000850: Workflows Broken in V9 - ocPortal feature tracker
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#92010
Avatar

Community saint

Pushed to Git to.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: