New Comment System@Siebel Unleashed.. Do Try and give me feedback | Next Tip »Home

Named Method-Update Field user property in action

OkAvarageGoodVery GoodExcellent (5 votes, average: 4.20 out of 5)
Loading ... Loading ...

I have been awfully busy in these past few days and I haven’t had a chance to write any articles or posts but I have been visiting Siebel Forum and there is definitely some good activity going down there. Now, there are quite a few users contributing valuable tips and solution that it is worth visiting there.

Here is an example of that.

Requirement:

In “Service Request” if the Status is Set to Closed , workflow needs to be invoked. Runtime events should not be used. Here is what we are trying:

We are using BC User Property called Named method n to invoke the workflow

The question :?

How to trigger the Named Method Bus Comp User property by using other Bus Comp User properties like On Field Update Invoke or On Field Update Set

In short here is what we are trying to achieve

If status is set to “Closed” invoke a BC user property which will invoke named method user property which finally will invoke workflow.

An example will really help

Jeevan a member of Siebel Unleashed forum has given an excellent example how to achieve that.

Solution:

To full fill the requirement that you mentioned above following combination of user properties need to be created on your BC.

I m giving the example of invoking WF on Action BC when the status changes to closed.

  • Create the following user property:
           Name: On Field Update Invoke n
           Value: “Status”, “Action”, “InvokeWF”, “[Status] = ‘Closed’”

This user property will invoke method InvokeWF on Action BC when the status of the activity moves to “Closed”.

  • Create another user property as mentioned below:
          Name: Named Method n
          Value: “InvokeWF”, “INVOKESVC”, “Action”, “Workflow Process Manager”, “RunProcess”, “‘ProcessName’”, “Your Workflow Name”, “‘RowId’”, “[Activity Id]“, “‘WF Process Prop 1′”, “[Activity Type]“

This user property will invoke the workflow process “Your Workflow Name” and pass the followinf input properties to the workflow
           Object Id = Activity Id
           WF Process Prop 1 = Activity Type

Modify the above user properties as per your actual requirement.

  • Share/Bookmark

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: , Read 387 articles by neel
  • whatever
    Guys,

    I am trying to achieve a simple functionality using the combination of the Business Component User Properties "On Field Update Invoke n" and "Named Method n".

    On the Sample DB, Action BC I created the followings:

    On Field Update Invoke 1
    "MeetingLocation", "Action", "InvokeWF"

    Named Method 1
    "InvokeWF", "INVOKESVC", "Action", "Workflow Process Manager", "RunProcess", "'ProcessName'", "'Update Activity'", "'RowId'", "[Id]"

    I reordered the numbers of all existing user propesties to make sure that mine are number 1 and active, and the rest are following the sequence.

    "Update Activity" is a simple flow with one step to update the Comment field for the sertain activity.

    However, the things are not working for me.

    I troubleshooted the flow by calling it from a RTE on the Action on SetFieldValue on MeetingLocation, and it worked just fine.

    I do not think should have something to do specialized class of the Action BC - CSSBCFINSActivity - since at the at the base is class of it is CSSBCBase. Plus your example is on Action as well.

    Thanks!
  • Will
    Ah. Thanks neel. If you haven't already guessed. I'm still fairly new to siebel.
  • both user properties are inter linked...

    first one results in triggering the second one... these are not two examples ... It is one example and you have to use both user properties ...
  • Will
    Great post, had a question though. For the second example on invoking the workflow when the status is set to closed.

    Name: Named Method n
    Value: “InvokeWF”, “INVOKESVC”, “Action”, “Workflow Process Manager”, “RunProcess”, “‘ProcessName’”, “Your Workflow Name”, “‘RowId’”, “[Activity Id]“, “‘WF Process Prop 1′”, “[Activity Type]“ )


    I did not see an argument that inovokes the workflow when status = closed? Could someone shed some light on this? Thanks
  • Anbu
    Hi Guys,
    Any specific reason for not using Runtime events???
blog comments powered by Disqus

Polls

Do you like the new Comment System and new look to Site?

View Results

Loading ... Loading ...