+1-888-365-2779
Try Now
More in this section

workflow

27 posts, 0 answered
  1. sam
    sam avatar
    3 posts
    Registered:
    10 Apr 2007
    06 Apr 2008
    Link to this post
    Hi,

    when using workflow, what does the button "Send For Approval" do?
    I understand Notification Services are not currently working so what does it do?

    Also, how does anyone determine if a page is awaiting approval? There is no icon image displayed next to the page in the sitemap tree...
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 Apr 2008
    Link to this post
    Hi Sam,

    Send for Approval simply sends the item to the next state of the workflow. Items that are in state "For Approval" are just one step before they become published.

    As for the pages, if you click All Pages, you will see a table with all pages and a Status column. You are also able to sort pages by status.
    I have attached a screenshot.

    Let us know if there is anything else you would like to know about Sitefinity.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Wendy
    Wendy avatar
    14 posts
    Registered:
    07 Jun 2004
    08 Apr 2008
    Link to this post
    Does this mean the email notifications are not working in 3.2?   Thanks. 
  4. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    08 Apr 2008
    Link to this post
    Yeah,

    Has the the SP for 3.2 enabled Notification services to send content approval email?

    If so, how do we configure this?

    If not, when will it?
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Apr 2008
    Link to this post
    Hello Wendy and Sam,

    The Notification service is still not available in Sitefinity. We are still working on it and most probably it won't make it into the upcoming SP1 in May.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Daniel
    Daniel avatar
    10 posts
    Registered:
    08 Apr 2008
    08 May 2008
    Link to this post
    Hi Georgi,

    I see that SP1 was released in March 2008.  When you say that notifications "most probably it won't make it into the upcoming SP1 in May", are you refering to the previous SP1 in March, or to a future SP2 in May 2008?

    In any case, is there any update on when we can expect email notifications to be supported in the SiteFinity workflow?

    Thanks,
    Daniel
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 May 2008
    Link to this post
    Hello Daniel,

    I wanted to say that the Notification service most probably won't be ready for the upcoming SP2 in May. I'm sorry for my mistake.
    We don't have an estimate for this service yet.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Oct 2008
    Link to this post
    did this still not make it into 3.5? is there any way to build this functionality by intercepting an event and sending an email? i don't need much just a quick email and that's it just to one person only when content is approved for publishing.
  9. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Oct 2008
    Link to this post
    never mind found this kb article: http://www.sitefinity.com/support/knowledge-base/kb-article/b1154K-hmb-b1154T-ceb.aspx

    i thought it was exclusively for news module but I see now it can be used for any gc module.... what about pages? that's the important one
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Oct 2008
    Link to this post
    Hi SelArom,

    Well, this is exactly what I was going to write :) We are still not ready with the notifications - it turned out there are some more important issues and things to be implemented.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Oct 2008
    Link to this post
    thank you for your quick follow up, but i'm still slightly confused on how to modify this to work for Page workflow changes. I can see how this would be changed to fit any module, but I can't seem to figure out how to modify it to intercept *page* changes.

    can this be done?
  12. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 Oct 2008
    Link to this post
    Hi SelArom,

    The concept is almost the same. The difference is that you should inherit (create code-behind of) another user control template:
    public partial class Sitefinity_Admin_ControlTemplates_Pages_PagePropertiesEdit: System.Web.UI.UserControl  

    You should also use the CmsManager APIs to retrieve the modified Page, instead of NewsManager which is getting the News item.

    You could give it a try, although this should do the trick :)

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  13. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    28 Oct 2008
    Link to this post
    are you certain this is the page to code against? I don't see a workflow button to code against on this page, and in fact looking through I can't find any page or control that holds the "save" or "publish" button for the page editor so that I can intercept the command...
  14. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Nov 2008
    Link to this post
    Hello SelArom,

    Sorry about that, the buttons are in PageViewer.ascx control, located in
    ~/Sitefinity/Admin/ControlTemplates/Pages/PageViewer.ascx. Here is how the class declaration should look like:
    public partial class Sitefinity_Admin_ControlTemplates_Pages_PageViewer: System.Web.UI.UserControl  

    :)

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  15. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    09 Dec 2008
    Link to this post
    I never did get this to work but I did want to point something out. in the code it looks like you're just grabbing the list of people in a general approvers role, however, the way my site is set up, not all approvers can approve every page, only the ones they have view access to. So someone might be an approver, but only for a subsection of pages. To notify them of changes to ANY page would be incorrect, because they can only approve pages they are assigned to...

    can you search users by page-level permissions?
  16. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    12 Dec 2008
    Link to this post
    Hi SelArom,

    Unfortunately there is no easy way to do it out of the box.

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  17. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    12 Dec 2008
    Link to this post
    thanks for following up... will this be addressed in 4.0 and WWF?

    thanks again!
  18. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Dec 2008
    Link to this post
    Hello SelArom,

    We have information that the upcoming WWF implementation will not be backward compatible with the versions up to now, that is why are not going to build our workflow with WWF. We are surely going to improve the workflow engine though.

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  19. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    15 Dec 2008
    Link to this post
    oh that's a shame, I was looking forward to learning the new wwf, as it has been in the back of my head for some time now. are you abandoning it altogether for now (not even for 4.0)?

    also, how do you get only published content in workflow? I solved this temporarily by getting everything I want with the contentmanager, then filtering based on status, but is there a better way?

    IList items = mgr.Content.GetContent(0, MAX_COUNT, "Publication_Date DESC", filter.ToArray());  
    List<IContent> published = new List<IContent>();  
    foreach (IContent item in items)  
    {  
        if (item.Status == ContentStatus.Published) published.Add(item);  
    }  
    repeater.DataSource = published;  
    repeater.DataBind(); 

    thanks!

  20. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    16 Dec 2008
    Link to this post
    Hi SelArom,

    Unfortunately there is no better way. There is no method which takes the items based on their status, but this is one of the things we are going to improve in 4.0 with the new API and ORM.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  21. jcrichto
    jcrichto avatar
    35 posts
    Registered:
    14 Aug 2012
    24 Feb 2009
    Link to this post
    So is there no way to get at the workflow property of Generic Content item?  Not Status, but workflow?

    Since the admin panel isn't flexible enough to sort Generic Content, I wanted to build my own view and show a list, only showing ForApproval Items.

       protected void Page_Load(object sender, EventArgs e) 
        { 
     
            // create new instance of ContentManager 
            Telerik.Cms.Engine.ContentManager contentManager = new Telerik.Cms.Engine.ContentManager(); 
            // create list that contains filters 
            List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>(); 
     
            IList listOfContentItems = contentManager.GetContent(0, 0, "Name ASC"); 
            if (listOfContentItems.Count > 0) 
            { 
                foreach (Telerik.Cms.Engine.IContent contentItem in listOfContentItems) 
                { 
     
                   if([somehow check for ForAproval){ 
     Response.Write("<br />" + contentItem.GetMetaData("Name")+"<br />"); 
                } 
            } 
        } 
     

  22. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    25 Feb 2009
    Link to this post
    Hi Jeremy,

    Here is an example on how to get the generic content items workflow status:
            ContentManager GenericCntManager = new ContentManager(); 
            IList AllItems = GenericCntManager.GetContent(); 
     
            Response.Write("Generic Content Items for approval: <br/>"); 
            foreach (IContent cnt in AllItems) 
            { 
                StagedContent stgCnt = GenericCntManager.GetStagedContent(cnt.ID) as StagedContent; 
                if (stgCnt != null
                { 
                    WorkflowInstance workflow; 
                    workflow = WorkflowRuntime.Instance.GetWorkflow(stgCnt.WorkflowInstanceId); 
                    if (workflow != null
                    { 
                        ContentWorkflow activity = (ContentWorkflow)workflow.Activity; 
                         if(activity.ApprovalStatus == ApprovalStatus.ForApproval) 
                             Response.Write("-> <b>" +cnt.GetMetaData("Name").ToString()+"<b><br/>"); 
                    } 
                } 
            } 

    I hope this helps.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  23. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    10 Mar 2009
    Link to this post
    I can't seem to find the place to do this on the new embedded templates for News. neither the edit view nor the preview view have a workflow button on them... am I missing something?

    thanks!
  24. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    10 Mar 2009
    Link to this post
    okay well i compared the template file from the external tempaltes zip to the embedded one using reflector and it looks like the only difference (aside from some additional localization stuff) is that the embedded one has the workflow command (as well as the tag registration at the top), so I just added it. seems to be working now! will update after I finish testing it out...

    here's what I added

    <%

    @ Register TagPrefix="telerik" Namespace="Telerik.Workflow.WebControls" Assembly="Telerik.Workflow" %>

    and 

     

    <

     

    telerik:WorkflowMenu ID="workflowMenu" runat="server" />

     

  25. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Mar 2009
    Link to this post
    Hi SelArom,

    Are you by any chance using Sitefinity community edition templates? The workflow and the localization controls are removed from these templates, since these features are not available in the Community version.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  26. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    11 Mar 2009
    Link to this post
    doh haha you are absolutely right, I got the wrong one! there's like 15 downloads there I guess I missed. can the list be color-coded or further separated by edition or something? that long list of text can be confusing, as this isn't the first time i've downloaded the wrong thing!

    thanks again!
  27. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Mar 2009
    Link to this post
    Hello SelArom,

    Since we are now working on new Sitefinity.com web site, your suggestion is definitely going to be considered!

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
27 posts, 0 answered