I am back again with scriptless Siebel series, few days ago I came across a requirement which was as following:
Requirement:
We have Service Request (Parent BC) and Activities (Child BC) when all the activities are ‘Closed’ (status set as closed) Status of SR should automatically change to ‘Closed’.
Scriptless Solution:
I thought about the solution on the same lines as described in the previous post of Scriptless Siebel series. Here are steps to achieve that:
Workflow Steps:
- Query for Activities using PRM ANI Utility Service (QueryBusComp method)
- Use following Search Spec [Status] <> ‘Closed’ AND [Activity SR Id] = GetProfileAttr(‘SRId’)
- Decision Step will have following condition
If Number of Records greater than 0 then go to End else use Siebel Operation Step to Update SR status as Closed
Runtime Event Details: Runtime events details are also very similar to last post, so you can refer to last post for screenshots.
- Event Detail:
Sequence: -1
Object Type: BusComp
Object Name: Action
Event: WriteRecord
Conditional Expression: GetProfileAttr(’Me.ActiveViewName’) = ‘Service Request Detail View’
[To limit the execution to just that particular view]
Action Set Name: UpdateServiceRequest
Action Set Details:
You need to create two action records for this action set. One will set a profile attribute and other will call the workflow process
Action Details:
- Name: SRId
Action Type: Attribute Set
Sequence: 1
Profile Attribute: SRId
Set Operator: Set
Value: [Activity SR Id] - Name: CallWF
Action Type: BusService
Sequence: 2
Business Service Name: Workflow Process Manager
Business Service Method: RunProcess
Business Service Context: “ProcessName”, “NewServiceRequestUpdateWF”


(7 votes, average: 4.43 out of 5)