Follow Siebel_Experts on Twitter Sieble Expert Panel on LinkedIn

Home » WorkFlow Process

Implementation Of Error Control In A Workflow

9 April 2010 5,068 views 8 Comments Bookmark and Share



It’s well known that a workflow requires an error control for a robust process design. The next diagram shows an overview of the proposed error control.

Implementation of an error control in a Workflow in siebel 

As it’s shown, an error control provided a consistent tool , not only to provide a log but also to inform user about a problem in real-time by mail.

The following section contains the minimum settings required :

  • Step: Write to log

Using the Business Service EAI File Transport (Method: Send), it’s created a log which includes parameters in order to analyze any trouble detected.

Argumento Tipo Valor

In/Out

<Value> Expression “Step which an error is detected: “+[&Step]+ “Variables: “+[&Error Code] +[…]

In

AppendToFile Literal true

In

FileName Expression [&Dir]+”\ErrorWorkflow_N”+ tochar(today(),”DDMMYY”)+”.log”

In

 

  • Step: Send a Mail

This step send a mail to  specific list detailed, using method “SendMessage” from BS “Outbound Communications Manager”.

Argumento de entrada Tipo Valor
CommProfile Literal User
MsgHTMLBody Expression (expression detailed below )
MsgSubject Literal Wfw Example failed
MsgToList Literal mail@address.x
ProcessMode Literal Remote

 

Where MsgHTMLBody also includes parameters that permit an end-user to detect any trouble:

<p>

<b><font SIZE=4 FACE=ARIAL color=#000000>Workflow Execution Error  </font></b><BR>

<BR>

<TABLE>

                <TR>

                                <TD><B>Step  :</B></TD>

                                <TD>”+[&Step]+”</TD>

                          <TD><B>Error  :</B></TD>

                          <TD>”+[&Error]+”</TD>

                </TR>

</TABLE>

<BR>

</p>

Discussion  is on, Please share your views.

SocialTwist Tell-a-Friend

Related posts:

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

8 Comments »

  • Ashish Kr. Bameta
    Ashish Kumar said:

    Guys have you implement this? Please share your feedback.

  • Joan Martí Peraire
    Joan Martí (author) said:

    Not only I implemented this one but also works

  • Ashish Kr. Bameta
    Ashish Kumar said:

    I have also implement this. Its awesome. I just want readers to implement this and share response. :)

  • Jone Joakimsen said:

    I think the idea is great. But we have done a similar thing, but put it in a error workflow, which we just add to the “Error Workflow” column on tools. That also works great.

  • Ashish Kr. Bameta
    Ashish Kumar said:

    Jone can you please explain. This will help our readers.

  • Yash said:

    Hi Joan,
     
    1. Cant we send the Log file generated in step "Write To Log
    ' while sending the email?
    2. Also we are writing the error message into a file. Wouldn't it be better if we write the log mesaage in some Business Component so that any user can easiliy refer them when they want?

  • Prasanna said:

    Hi,
    I need to log an error if the email could not be delivered (say if the email address is wrong). Will the outbound communications Manager business service handle that? 
    Is there any other way to achieve this functionality.
    Regards,
    Prasanna

  • Joan Martí Peraire
    Joan Martí (author) said:

    Hi Prasan,
     
    Once an email is send, I think that we couldn't determinate if the email address is wrong… 
     
    let me say that for a client we elaborated an script in order to validate the address, including items such as containing "@" or "."

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.