This content has been marked as final. Show 9 replies
Do you use wfNotify to ilnk to your template (see http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c06_core_ref.htm#sthref1697 - Notifies all users in the myAlias alias, using the IdcHomeDir/resources/core/templates/reject_mail.htm file as a template:
) or anything else?
<$wfNotify("myAlias", "alias", "WF_REJECT_MAIL")$>
If the former, I think it should be enough to set variables just before the wfNotify command - in the entry event of the workflow step.
I 'm using <$wfNotify(dDocAuthor,"user","CUSTOM_TEMPLATE")$> to trigger the mail ,what i need is based upon the workflow name this template should be populated with the specific wfMailSubject and wfMessage String.I need to know if these strings can be set somewhere in the resource file as string.If yes how do you suggest the code will look like..Apologies if I'm asking a basic question as i'm still in learning phases of IDOC coding.
So, have you tried?
If this does not work, I assume that you override those variables somewhere in your template. If that is so, you will need to share how your template looks like.
<$wfMailSubject="Your mail subject"$> <$wfMessage="Your message text"$> <$wfNotify(dDocAuthor,"user","CUSTOM_TEMPLATE")$>
I ' using the same code:
<$wfMailSubject="Your mail subject"$>
<$wfMessage="Your message text"$>
what I want to do is to override this message for different workflows ,I need to use the same template and based upon the workflow name the workflow the message and the subject should be changed.
Edited by: user1175496 on Feb 7, 2013 1:38 AM
Maybe I don't get your question, but if you use <$wfMailSubject="Your mail subject - workflow 1"$> in a step of Workflow1, <$wfMailSubject="Your mail subject - workflow 2"$> in a step of Workflow2, should modify the text accordingly.
If not, it means that the message (and possibly mail subject too) does not use those internal variables. If that is so, you must share how your template looks like.
I think it's a question what the template should serve for. Usually, you want to modify it to change the content of the message - you may add a logo, re-organize the email, etc.
But often, you use variables wfMessage and wfMailSubject to parametrize the text and the subject of the message. Note that this is not mandatory, and you could modify the logic of the template so that those two variables are derived from other workflow content (something like move to the code of the template a code like)
It will work, but somehow, I don't like it - I think these two should be parameters set up by workflow, not something contained in the template, but that is my opinion.
<$if dWfName like "Workflow1"$> <$wfMessage="Message for Workflow 1"$> <$elseif dWfName like "Workflow2"$> <$wfMessage="Message for Workflow 2"$> ...