Technical support This forum is closed.
Version 1.x > Technical support > Multiple Workflows View modes: 
User avatar
Guest
norashlea - 8/14/2006 1:01:08 AM
   
Multiple Workflows
Hi,

I need to implement multiple workflows (6 altogether). This is a similar to the situation described at http://www.kentico.com/Forums/ShowPost.aspx?PostID=1261, where each division of the organization will be administering their own sections of the site.

I thought that I could implement it by creating an additional 5 document templates for the individual divisions, based on Page (Menu Item).

To start with just one of the divisions, in my application I created a new aspx page and recorded it as a new page template in CMS Desk.

I also created a role "CMS Training Approver", and then a new Workflow called Training with the CMS Training Approver as the only allowed Role.

Then in Application: CMS, I created a new template which I called Page (Menu Item - Training), setting the Workflow to "Training", and ensured that it had the same set of transformations, queries etc as Page (Menu Item). As this creates a separate table in the database as CMS_Training, I left all the fieldnames exactly the same as they are in CONTENT_MenuItem.

In my application, this created ../cms/training and the historyview.ascx file, but not the *.cs file. So I copied the one from ../cms/menuitem and modified the namespace. All the other folders and files under ../cms/training were created ok, and my application builds without error.

In the database, I also created a new stored procedure Proc_CMS_Training_SelectMenuItemFromAliasPath.

Then I set about modifying the page template that had been used for creation of all the pages in the Training section (on the Content tab), selecting the newly created Page (Menu Item - Training). But nothing changed!

So I first checked the table CMS_Class to make sure Page (Menu Item - Training) had been recorded correctly. Then I checked CMS_Tree, and found that all the /Training pages still had the ClassID for Page (Menu Item) recorded, rather than the ID for the new class.

To check that a page records correctly, I created a new page at the root level of the site, based on the new contentTraining.aspx page. It creates a new entry in CMS_Tree with the correct NEW ClassID recorded, and it has created an entry in the new CMS_Training table. But I can't actually access the page to edit content. It just throws me to the root page when I select it in the tree.

For the existing pages, I tried manually changing the ClassID to the new ID and then manually creating an entry in CMS_Training, deleting the old one from CONTENT_MenuItem, but I just get an error in the display window -- which I can't actually read because it is somehow being "cut off" -- I can see only about 2mm of the top line, which I think is saying "An error occurred [can't see next bit] your request. Please contact your administrator for help."

Regards,
Sharon.

User avatar
Guest
admin - 8/14/2006 8:22:23 PM
   
Re: Multiple Workflows
Hi Sharon,

it seems you're mixing document template and page templates which are two separate things. You can create custom document types, but you cannot replace the Page (menu item) document type that carries the information about the page templates.

The error you get is most likely caused by inconsistency in your database after you made manual changes to the content tables.

Best Regards,

User avatar
Guest
norashlea - 8/16/2006 7:24:30 AM
   
Re: Multiple Workflows
Hi Petr,

Can you tell me how I can implement a multi-workflow environment like this?

Thanks,

Sharon.

User avatar
Guest
admin - 8/16/2006 7:55:40 AM
   
Re: Multiple Workflows
Unfortunately, this is not supported in the current version (it will be in version 2.0). Right now, you can define different workflows only for different document types. However, there can be only one Page (menu item) document type with editable regions, etc. In version 2.0, you will be able to specify different workflows for chosen site sections and document types.

Best Regards,

User avatar
Guest
norashlea - 8/16/2006 1:26:33 PM
   
Re: Multiple Workflows
Thanks Petr,

When is ver. 2.0 expected to be released?

Regards,
Sharon.

User avatar
Guest
admin - 8/17/2006 1:23:07 PM
   
Re: Multiple Workflows
Hi Sharon,

it's currently scheduled for mid September.

Best Regards,