Microsoft Content Management Server - CMS word authoring workflow email message - help

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2005 > CMS word authoring workflow email message - help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CMS word authoring workflow email message - help
sunireddy

2005-04-25, 8:47 pm

Does anybody know how to generate workflow email message from word
authoring, not web.

I used "Customizing Microsoft Content Management Server 2002 Authoring
Connector"(http://msdn.microsoft.com/library/d...ms_CustAuCo.asp)
instructions. I took the second approach of creating a new application
for the authoring connector server component. The sample code to create
a new file and writing some dummy message to it works but if i include
the code to generate email it is giving
"Object reference not set to an instance of an object. at
DOT.Workflow.OnSubmit()
pst =
Microsoft.ContentManagement.Publishing.CmsHttpContext.Current.Posting;
usrs = pst.Approvers(true);"

I think it is getting pst as null, can anybody help me please.

Thanks
Sunitha

Stefan [MSFT]

2005-04-25, 8:47 pm

Hi Sunitha,

you should debug using VS.NET to see which object is null.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"sunireddy" <sunireddy@gmail.com> wrote in message
news:1114462521.391542.171330@z14g2000cwz.googlegroups.com...
> Does anybody know how to generate workflow email message from word
> authoring, not web.
>
> I used "Customizing Microsoft Content Management Server 2002 Authoring
>

Connector"(http://msdn.microsoft.com/library/d.../library/en-us/
dnmscms02/html/mscms_CustAuCo.asp)
> instructions. I took the second approach of creating a new application
> for the authoring connector server component. The sample code to create
> a new file and writing some dummy message to it works but if i include
> the code to generate email it is giving
> "Object reference not set to an instance of an object. at
> DOT.Workflow.OnSubmit()
> pst =
> Microsoft.ContentManagement.Publishing.CmsHttpContext.Current.Posting;
> usrs = pst.Approvers(true);"
>
> I think it is getting pst as null, can anybody help me please.
>
> Thanks
> Sunitha
>



sunireddy

2005-04-25, 8:47 pm

Hi Stefan,

Thanks for the quick reply, I already know that the object
pst =3D
Microsoft.ContentManagement.Pu=ADblishing.CmsHttpContext.Curren=ADt.Posting;
is null.

But not too sure how to go about it. The same workflow.cs works for web
edit. I am not too sure how to use the same for word edit cause for
this i am creating a new application and copying the workflow.cs and
global.asax.cs and global.asax and bin dir to the folder C:\Program
Files\Microsoft Content Management Server\Server\MCMS manually.

Thanks
Sunitha

Stefan [MSFT]

2005-04-26, 2:48 am

Hi Suni,

in a workflow event you should use e.Context as context and e.Target as the
current posting:

CmsContext context = e.Context;
Posting p = (Posting) e.Target;

Never user CmsHttpContext in a workflow event!

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


"sunireddy" <sunireddy@gmail.com> wrote in message
news:1114463813.974786.163360@f14g2000cwb.googlegroups.com...
Hi Stefan,

Thanks for the quick reply, I already know that the object
pst =
Microsoft.ContentManagement.Pu_blishing.CmsHttpContext.Curren_t.Posting;
is null.

But not too sure how to go about it. The same workflow.cs works for web
edit. I am not too sure how to use the same for word edit cause for
this i am creating a new application and copying the workflow.cs and
global.asax.cs and global.asax and bin dir to the folder C:\Program
Files\Microsoft Content Management Server\Server\MCMS manually.

Thanks
Sunitha


sunireddy

2005-04-26, 5:53 pm

Hi Stefan,

I really appreciate your help, the solution you pointed out worked.

Thanks
Sunitha

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com