How to Create Siebel Task UI?
If you have not seen the previous video post “what-is-siebel-task-ui” ,check it out << click here <<
Follow the below steps to create a simple Task UI in your local Siebel application.
1. Task Business Component Name: “TestCreateAccountTransBC”
- Create a Transient BC based on S_TU_LOG table (by default), from New Object – > Transient BC.This table holds data temporarily for the TASK session.Add fields in this BC and they will automatically get assigned to some temporary columns of the table – S_TU_LOG.These columns will be storing the temporary data which can be used during the time the task is running.The class of this BC will default to CSSBCTaskTransient
- Create a Transient BC based on S_TU_LOG table (by default), from Tools -> New Object – > Transient BC.
- This table holds data temporarily for the TASK session.
- Add fields in this BC and they will automatically get assigned to some temporary columns of the table – S_TU_LOG.
- These columns will be storing the temporary data which can be used during the time the task is running.
- The class of this BC will default to CSSBCTaskTransient
2. Task Applet Name: “TestCreateAccountTransApplet”
- Create list applets based on the Transient BC as given below.
- Use File – > New Object – > Task Applet wizard.
- Its class will default to CSSSWEFrameTask class.
- Configure fields and controls for the applet.
- This applet will show the temporary data stored in the Transient BC
3. Task View Name: “TestCreateAccountTransView”
- Create two views for the two different states of the task.
- Use Tools -> New Object – > Task View wizard.
- After the different applets are created, create different views to display the data after or before operations within the task. It depends on requirement, that what all has to be exposed on UI during the runtime of Task.
- You would need a BO for the View. Create a BO based on the Task BC created above. Then add the BO to the view.
- Add each Applet to each view.
- Add ‘Task Playbar Applet – Bottom’ or ‘Task Playbar Applet – Top’ to display buttons to taking the Task Forward, Backward, Pause or Cancel. Their view modes should be Base.
4. Task Name: “TestCreateAccountTask”
- Create a Task using the two Views.
- Use Tools -> New Object -> Task
- Make sure to specify in the step “Task View” about the properties like Forward Button Type, Disable Cancel,Pause,Previous..etc
- Add the two task view steps in the task and associated them to two views created above. In between the two views add any operation to perform on data.
5. Task Deployment
- Deploy and Activate the Task from Tools or from Siebel Client->Sitemap-> Business Process Admin – Tasks.
- Deploy and Activate the task from the toolbar Button in tools. This activation can also be done after tools deployment, in Client -> Business Process Admin -> Tasks
- Register the newly created Task view to a responsibility and add the same responsibility to the Users who are going to use the task.
- This can be done in Site Map -> Application Administration -> Tasks
- View: TestCreateAccountTransView
- Responsibility: Siebel Administrator
- User: SADMIN
7. Invoke the Task
- Create a base applet with a “InvokeTask” button to invoke the task
- After the Task creation is done, we need to invoke the task using Script, Menu or Workflow Process.
- Here we are invoking using a Button and applet server Script.
- Take a existing applet and add a MiniButton to it – “InvokeTask”
- Write Script the WebApplet_PreInvokeMethod to Invoke the task.
inputPropSet = TheApplication().NewPropertySet(); outputPropSet = TheApplication().NewPropertySet(); taskUIsvc = TheApplication().GetService("Task UI Service (SWE)"); inputPropSet.SetProperty("TaskName","TestCreateAccountTask"); taskUIsvc.InvokeMethod("LaunchTaskFromScript",inputPropSet,outputPropSet);
- Vanilla Business Service – “Task UI Service (SWE)” is used to invoke the task.
- If you pause a task, it goes to your inbox (search for it in Site Map).
- You can resume your task later on by clicking a button to resume it there.
Hope you enjoyed this big topic..post your doubts if any, and contribute any topic if you would like from your side..









No Comments
You must be logged in to post a comment.