Topic
  • 11 replies
  • Latest Post - ‏2013-02-07T14:51:21Z by SystemAdmin
SystemAdmin
SystemAdmin
30895 Posts

Pinned topic WCM Content Item WorkflowAction Unknown

‏2013-02-01T23:00:39Z |
All,

I have created Email notification action and it gave as Entering stage action in Publish workflow stage.

But email notification was not scheduled for content.

please let me know if you have any idea.
Updated on 2013-02-07T14:51:21Z at 2013-02-07T14:51:21Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-04T01:54:07Z  
    You've updated the WCMConfigServices property file to point to your mail server, right?
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-04T15:12:55Z  
    You've updated the WCMConfigServices property file to point to your mail server, right?
    Hi JOe,

    I am able to see the workflow email notification Actions are scheduled When i am builting WCM content through manaully.

    Once it's done i am changing "Expiry Date" through WCM Api script, this time workflow actions are not scheduled,

    Following workflow actions:-

    1) 90 days email notification before expiration date
    2) 30 Days email notification before Expiration date.

    Your help is greatly appreciate.

    Thanks
    Sree
  • Mark_Winton
    Mark_Winton
    110 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-04T17:38:58Z  
    Hi JOe,

    I am able to see the workflow email notification Actions are scheduled When i am builting WCM content through manaully.

    Once it's done i am changing "Expiry Date" through WCM Api script, this time workflow actions are not scheduled,

    Following workflow actions:-

    1) 90 days email notification before expiration date
    2) 30 Days email notification before Expiration date.

    Your help is greatly appreciate.

    Thanks
    Sree
    Just to clarify your issue:

    1) When creating a content item you specify its expiry date, and the dates for the email actions are set correctly. If not alterations are made to the content these emails are sent out at the correct time.
    2) You edit the content item and change its expiry date.
    3) The email action dates aren't updated after step 2, i.e. they still have the same value that they did after step 1.

    If the above is correct, then I believe the issue is that workflow actions are only executed when an item enters or exits a workflow stage; editing a live content item doesn't force the item through any additional stages, so the email action dates aren't ever updated.

    The solution for this would either be to ensure that any edits force the content item back through the taskflow stages (I'm not sure exactly how you'd go about setting this up), or if you're on Portal 7 or later to enable to WCM JMS messaging and listen out for any content items being edited to see if they require some custom steps to update some values and/or restart the workflow.
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-04T19:22:11Z  
    What Mark has responded is the issue if the content item enters the publish stage without an expiry date. If you then change the expiry date via an API you are changing the content 'as-is' so it is not reentering the publish stage which means the email will not get sent.

    Joe
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-04T19:24:04Z  
    Just to clarify your issue:

    1) When creating a content item you specify its expiry date, and the dates for the email actions are set correctly. If not alterations are made to the content these emails are sent out at the correct time.
    2) You edit the content item and change its expiry date.
    3) The email action dates aren't updated after step 2, i.e. they still have the same value that they did after step 1.

    If the above is correct, then I believe the issue is that workflow actions are only executed when an item enters or exits a workflow stage; editing a live content item doesn't force the item through any additional stages, so the email action dates aren't ever updated.

    The solution for this would either be to ensure that any edits force the content item back through the taskflow stages (I'm not sure exactly how you'd go about setting this up), or if you're on Portal 7 or later to enable to WCM JMS messaging and listen out for any content items being edited to see if they require some custom steps to update some values and/or restart the workflow.
    Hi Mark,

    I didn't understand your response properly since you are not sure about setting but telling as solution.
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-04T19:31:54Z  
    What Mark has responded is the issue if the content item enters the publish stage without an expiry date. If you then change the expiry date via an API you are changing the content 'as-is' so it is not reentering the publish stage which means the email will not get sent.

    Joe
    Hi Joe,

    I really appreciate your help...

    Let me tell you clearly here about the issue if didn't get it so far.

    I created content with Expiry date as 06/30/2013, and it got published, Workflow actions show like

    Workflow Actions:-
    PA Publish: Complete
    PA Content Expiry Email Notification: Scheduled - Action scheduled for 3/30/13 12:09 PM.
    PA 30 Days Content Expiry Email Notification: Scheduled - Action scheduled for 5/30/13 12:09 PM

    Later I changed Expiry date as 10/30/2013 through WCM API Script, Content Item was restarted and it got published, but workflow Actions shows like bellow

    Workflow Actions:-
    PA Publish: Complete
    PA Content Expiry Email Notification: Unknown.
    PA 30 Days Content Expiry Email Notification: Unknown

    Please let me if you didn't get my issue.

    Thanks
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-06T13:56:18Z  
    Hi Joe,

    I really appreciate your help...

    Let me tell you clearly here about the issue if didn't get it so far.

    I created content with Expiry date as 06/30/2013, and it got published, Workflow actions show like

    Workflow Actions:-
    PA Publish: Complete
    PA Content Expiry Email Notification: Scheduled - Action scheduled for 3/30/13 12:09 PM.
    PA 30 Days Content Expiry Email Notification: Scheduled - Action scheduled for 5/30/13 12:09 PM

    Later I changed Expiry date as 10/30/2013 through WCM API Script, Content Item was restarted and it got published, but workflow Actions shows like bellow

    Workflow Actions:-
    PA Publish: Complete
    PA Content Expiry Email Notification: Unknown.
    PA 30 Days Content Expiry Email Notification: Unknown

    Please let me if you didn't get my issue.

    Thanks
    Hi Joe,

    Any Idea on this.

    Thanks
    sree
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-06T13:59:35Z  
    Just to clarify your issue:

    1) When creating a content item you specify its expiry date, and the dates for the email actions are set correctly. If not alterations are made to the content these emails are sent out at the correct time.
    2) You edit the content item and change its expiry date.
    3) The email action dates aren't updated after step 2, i.e. they still have the same value that they did after step 1.

    If the above is correct, then I believe the issue is that workflow actions are only executed when an item enters or exits a workflow stage; editing a live content item doesn't force the item through any additional stages, so the email action dates aren't ever updated.

    The solution for this would either be to ensure that any edits force the content item back through the taskflow stages (I'm not sure exactly how you'd go about setting this up), or if you're on Portal 7 or later to enable to WCM JMS messaging and listen out for any content items being edited to see if they require some custom steps to update some values and/or restart the workflow.
    sorry Mark,

    If my response hurt to you..
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-06T14:48:05Z  
    Hi Joe,

    I really appreciate your help...

    Let me tell you clearly here about the issue if didn't get it so far.

    I created content with Expiry date as 06/30/2013, and it got published, Workflow actions show like

    Workflow Actions:-
    PA Publish: Complete
    PA Content Expiry Email Notification: Scheduled - Action scheduled for 3/30/13 12:09 PM.
    PA 30 Days Content Expiry Email Notification: Scheduled - Action scheduled for 5/30/13 12:09 PM

    Later I changed Expiry date as 10/30/2013 through WCM API Script, Content Item was restarted and it got published, but workflow Actions shows like bellow

    Workflow Actions:-
    PA Publish: Complete
    PA Content Expiry Email Notification: Unknown.
    PA 30 Days Content Expiry Email Notification: Unknown

    Please let me if you didn't get my issue.

    Thanks
    Hi, I understand the problem your are seeing. Another couple of questions if I may. Did you restart the workflow using the API? When did you set the Expire date, before or after restarting the workflow? The expire date should have been changed in the draft stage and not the publish stage.

    Thanks,

    Joe
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-06T20:07:23Z  
    Hi, I understand the problem your are seeing. Another couple of questions if I may. Did you restart the workflow using the API? When did you set the Expire date, before or after restarting the workflow? The expire date should have been changed in the draft stage and not the publish stage.

    Thanks,

    Joe
    Yes Joe, I am restarting workflow through WCM api.

    draftContent.setExpiryDate(futureDate);
    theworkspace.save(draftContent);

    // sending for approval
    draftContent.nextWorkflowStage();
    // approved, once it approved it publish
    draftContent.nextWorkflowStage();
  • SystemAdmin
    SystemAdmin
    30895 Posts

    Re: WCM Content Item WorkflowAction Unknown

    ‏2013-02-07T14:51:21Z  
    Sree,

    So, looks like the process is correct. It could be that when using the API to move the content item between stages the actions are not getting triggered properly. The only thing I can suggest at this time is to open a PMR.

    Joe