Custom workflow for Over Time

Hi All,
          I have a requirement for Over time workflow. There is no standard workflow is there for this. FC asked me to develop a screen for over time in which Reporting manager will enter the employees overtime details, when he clicks on submit button it should go for approval to DGMs inbox. If DGM approves the OT then it go for Time office where they may change the OT data or they may approve the OT.
My issue is I have created the entire flow through modulepool. I have developed the screenand program etc.,. when RM submits I am triggering an event and then WF starts. Now when the DGM receives the workitem how can I display the second screen which are having the approval Rejection and Change buttons appears, how can I write the logic inside the BO Method to call the 2nd screen?.
Can anybody please guide me how to complte this WF.
Regards.
Srija.

Hi,
We also had the same requirement, we handled the same using Module Pool Programming and Workflow.
My Understanding: Imagine you need to call the Module Pool program to get approval for the OT.
Steps:
1. Place one work item in DGM's Inbox, when DGM double clicks the work item, write a method to call the same module pool in display or Change mode as per your requirement.
2. Now, in Step 1 use Import / Export Memory ID's.
In BOR Object Method, before doing CALL TRANSACTION <ZXYZ>. You need to Export one Memory ID say M1 with value "X"
In PAI of the appropriate module pool screen you need to IMPORT data from Memory ID into one variable say WS_M1.
3. Create two buttons on the screen keep them in invisible mode, (just check the property of the button element).
Now, write the code like IF WS_M1 equal to 'X', loop at screen, and make the two buttons visible, if control coming from workflow task, if there are more elements to control it is easy to use groups for screen elements.
4. Now, in PBO of the same screen, capture the ok_code of the Approve or Reject button, raise appropriate events, update data base.
5. Make sure your BOR method is asynchronous, other wise if the manager clicks cancel or F3 then task will disappear.
Pls let me know if you need more info.
Regards,
Mohan Vamsi

Similar Messages

  • Custom workflow for manual merch projects

    Hi,
    Having issues in configuring custom workflow.
    In ATG10.0.3 created a custom workflow(editCommerceAssets.wdl) & configured with catalog import job (importing thru spreadsheet & creating a Merch project).This works successfully.
    I am trying to configure this custom workflow for manually created projects in BCC.
    In the following files I tried replacing commonWorkflow.wdl to editCommerceAssets.wdl.
    <localconfig>\atg\commerce\web\assetmanager\taskConfiguration.xml
    <localconfig>\atg\commerce\web\workflowActivities.xml
    But getting this error in pub console:
    10:13:23,195 WARN [ActivityManager] The workflow activity with ID /Common/commonWorkflow.wdl has been registered multiple times for the same workflow. Please verify your workflow
    configuration as this is not allowed.
    10:14:40,453 ERROR [ApplicationManager] There is no application configured with ID '/Common/commonWorkflow.wdl'.
    Any recommendations?
    Thanks!
    Mani
    Edited by: user11263665 on Oct 17, 2012 9:38 AM

    It is possible that the workflow has already been registered in db before you modified workflowActivities.xml.Did you try cleaning up workflow tables and restart the server??
    epub_workflow_info, epub_coll_workflow, epub_ind_wf,epub_wf_server_id tables
    Make sure there is only one entry for each workflow in epub_workflow_info. If there are multiple entries, then it may be coming from 2 different places and you need to disable one of them. Whenever you create custom work flow, copy the existing workflow and modify it and give it a different name. If you are importing programmatically, you really dont need to configure it in taskConfiguraiton.xml ( as it corresponds to settings related to which item-descriptors, tabs, security in BCC gui).
    -karthik

  • Debug background task in custom workflow for PO change

    Hi,
    We are on ECC 6.0 EHP7.
    I have a custom workflow for PO object type(delegated to std object type BUS2012).
    There is a background task which has some custom code written and I need to debug this code.
    Can someone please let me know how to debug a background task?
    Thanks.

    As suggested by ronen we can debug through swo1 but we have to pass values manually for importing parameters, by using sm50 also we can do debug and there is one more way  to debug
    if its custom task change background  task to fore ground and change business object method also change it to fore ground and activate the work flow.
    now change any  po  then it will stop at that step now take that work item id in swi1 and go to swia and execute after putting break point in that method of business object.
    But best way to debug  through infinite loop i.e sm50.
    suri

  • Custom Workflow for Shipping Execution

    Hi All,
    We have a requirement to cater approval on issuance i.e. at the time of shipping execution. For this purpose we have used Oracle Workflow Builder to cater the requirement. The workflow is working fine for approval but not for rejection. If we approve the shipping execution, the transaction is working fine but if we rejects it, the shipping transaction got stuck with exception and if we resolve the exception manually, we are unable to re send it for approval or even shipping.
    I will be grateful if anyone can help me out and advise me on how to setup of workflow for rejection.
    Thanks in advance.
    Regards,
    Zulfiqar Ali Mughal

    It is possible that the workflow has already been registered in db before you modified workflowActivities.xml.Did you try cleaning up workflow tables and restart the server??
    epub_workflow_info, epub_coll_workflow, epub_ind_wf,epub_wf_server_id tables
    Make sure there is only one entry for each workflow in epub_workflow_info. If there are multiple entries, then it may be coming from 2 different places and you need to disable one of them. Whenever you create custom work flow, copy the existing workflow and modify it and give it a different name. If you are importing programmatically, you really dont need to configure it in taskConfiguraiton.xml ( as it corresponds to settings related to which item-descriptors, tabs, security in BCC gui).
    -karthik

  • Custom Workflow for sending Remainder mail in MS CRM 2013/2015 online

    Hi All,
    We have a requirement to send a remainder email before 5 days,3 days and on the same day of the M/TC date in lead form. To achieve this we tried using Custom Workflow. Below is the logic tried but in the highlighted line
    not able to retrieve the "M/TC date" value, this results in no output.
    Kindly suggest where we are going wrong or a best approach to do this.
    Parameters:
            [RequiredArgument]
            [Input("InputEntity")]
            [ReferenceTarget("lead")]
    public
    InArgument<EntityReference>inputlead
    { get;
    set; }
            [Output("TaskCreated")]
            [ReferenceTarget("task")]
    public
    OutArgument<EntityReference>
    taskCreated { get;
    set; }
    code:
                try 
                Entity lead
    = (Entity)service.Retrieve("lead",
    context.PrimaryEntityId, new ColumnSet(newString[]
    { "new_mtcdate" })); //  (unable to
    retrieve the mtcdate)            
                      Guid leadId
    = this.inputlead.Get(executionContext).Id;
                    if(lead.Contains("new_mtcdate"))
                      {  DateTime date
    = DateTime.Now;
                          DateTime mtcdate
    = (DateTime)lead["new_mtcdate"];
                          TimeSpan elapsed
    = date.Subtract(mtcdate);
                          double days
    = elapsed.TotalDays;
                          Entity task
    = new Entity();
                          task.LogicalName = "task";
                          if (days
    == 5)
                          {task["subject"]
    = "Five days more for the Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));}
                          if (days
    == 3)
                          {task["subject"]
    = "Three days more for the Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));}
                          if (days
    == 0)
                          {task["subject"]
    = "Today you have Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));
    Regards, Rekha.J

    Hi,
    Try with replacing
    Entity lead = service.Retrieve("lead", context.PrimaryEntityId, new ColumnSet(new string[] { "new_mtcdate" }));
    also make it confirm, you are getting EntityId.
    Also check  Link

  • Custom workflow for Fiori Approve Timesheets

    Hello All,
    I am investigating complexity of adding custom workflow to Approve Timesheets.
    There is BADI SRA010_BADI_TIMESHEET_APV.
    Any experiences/advices  ?

    Hi Lukasz,
    How do you change approver using data from Ztable in the current system?
    If you are talking about workflow approver determination logic, it is a job for Workflow Engine and not for Fiori.
    Regards, Masa
    SAP Customer Experience Group - CEG

  • Custom Workflow for custom HCM form - reg

    Hi,
    We have a custom form designed and having a workflow for that. We have developed the workflow like any other workflow for appraisals for example or in SD. But here while test run of process we are getting error saying 'Work Item not found' though the work item is present in SWI1.
    We have below steps.
    Header
    Importing form container
    User Desicion (Approve/Reject)
    If approved update database.
    Can any one correct me if am wrong.
    Raj

    Hi,
    For workflows involving HCM forms, there some standard tasks which should be made use of:
    Task Group TG17900001: Components for HCM Processes & Forms
    Task Group TG17900002: Interactive Components
    Standard Task TS17900100: Edit Form
    Standard Task TS17900101: Approve Form
    Standard Task TS17900102: Form Is Edited Again by Author
    Standard Task TS04000018: Process PD Form
    Standard Task TS04000019: Approve PD Form
    Standard Task TS04000020: PD Form Is Edited Again by Author
    Workflow Template WS17900260: Save Form with Error Handling
    Workflow Template WS17900404: Draft for Process Start
    Workflow Template WS17900418: Forward: Process Start with Errors
    Task Group TG17900003: Background Components
    Standard Task TS17900106: Check Existence of PA Infotype
    Standard Task TS17900107: Check Form Data
    Standard Task TS17900108: Save Form Data
    Standard Task TS17900110: Import Field Value to WF Cont. Element
    You can use TS17900110, TS17900101/TS04000019 and TS17900107. Please make sure you read some documentation before you use these tasks.
    Let me know, whether this is helpful.
    Thanks,
    Sukumar.

  • Custom Workflow for User Requirment

    hi ,
    i am creating a workflow for which is custom .
    i have 1 module pool program where i have 7 fields.
    User can create the data and save it .
    once he save the Data the workflow should trigger.
    i have created a Z business object wherein i have created 4 key fields and 3 attributes according to data in the custom table
    the BO has no supertype. and created 1 event save
    now my question is where should i write the code for triggering the workflow on the save of the entries in the module pool program. and i am also i am responsible for showing the approver in the table after the decision is taken in workflow activtiy
    please suggest
    Thanks on advance
    Chitis

    Hi,
    Even i haven't worked on such requirement.
    I know how to trigger a workflow or start a workflow through customization.
    But i like to know in case of module pool programming where I am supposed to write the code?
    Whether in PAI or PBO or anywere else?
    Let us know.
    Thanks,
    Raj

  • Workflow for Cat2 Time approval

    Hi All,
    I am new to workflow, We need to trigger a workflow when employee fills time in Tcode CAT2. Standard workflow  WS40001001 is working fine.
    Here in workitem text it is displaying Approval for 00000000 instead it should display (Approval for Personal no and Name) which is assigned in standard task.
    Example:
    This how we wanted:
    Approval for 00001234 SAPDEMO
    This is was happening:
    Approval for 00000000
    Work item text : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    Kindly let me have some idea on this
    Thanks in advance
    Arun .

    Hi linganna,
    This is standard task and it is binding when we assign the task.
    And i am using org unit and made it as general task. Would i need to assign org unit yo task,
    how to bind wokflow container element to Business object CATS?
    Work item text  I CHANGED : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    I DEBUGED AND FOUND THAT IN FM CATS_WF_APPROVAL VALUES ARE NOT POPULATING FOR PERNR AND ENAME
    WHAT WOULD BE THE PROBLEM HERE?
      SWC_GET_ELEMENT CONT_IMP 'TS_PERNR' PERNR_WF.
      SWC_GET_ELEMENT CONT_IMP 'TS_ENAME' ENAME.
      SWC_GET_ELEMENT CONT_IMP 'TS_DATE'  DATE.
      SWC_GET_ELEMENT CONT_IMP 'TS_TIME'  TIME.
      SWC_GET_ELEMENT CONT_IMP 'TS_UNAME' UNAME.
    Regards,
    Arun.
    Edited by: Arun Kumaran on May 31, 2010 1:14 PM
    Edited by: Arun Kumaran on May 31, 2010 1:36 PM

  • Problem in Workflow for Cat2 time approval

    Hi All,
    I am new to workflow, We need to trigger a workflow when employee fills time in Tcode CAT2. Standard workflow  WS40001001 is working fine.
    Here in workitem text it is displaying Approval for 00000000 instead it should display (Approval for Personal no and Name) which is assigned in standard task.Kindly let me have some idea on this
    Thanks in advance
    Arun Kumaran.
    Edited by: Arun Kumaran on May 28, 2010 11:37 AM
    Edited by: Arun Kumaran on May 31, 2010 6:29 AM

    Hi linganna,
    This is standard task and it is binding when we assign the task.
    And i am using org unit and made it as general task. Would i need to assign org unit yo task,
    how to bind wokflow container element to Business object CATS?
    Work item text  I CHANGED : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    I DEBUGED AND FOUND THAT IN FM CATS_WF_APPROVAL VALUES ARE NOT POPULATING FOR PERNR AND ENAME
    WHAT WOULD BE THE PROBLEM HERE?
      SWC_GET_ELEMENT CONT_IMP 'TS_PERNR' PERNR_WF.
      SWC_GET_ELEMENT CONT_IMP 'TS_ENAME' ENAME.
      SWC_GET_ELEMENT CONT_IMP 'TS_DATE'  DATE.
      SWC_GET_ELEMENT CONT_IMP 'TS_TIME'  TIME.
      SWC_GET_ELEMENT CONT_IMP 'TS_UNAME' UNAME.
    Regards,
    Arun.
    Edited by: Arun Kumaran on May 31, 2010 1:14 PM
    Edited by: Arun Kumaran on May 31, 2010 1:36 PM

  • Review time management workflow for ESS Time management

    Hi gurus!!
        We have a user, who submitted his time and this did not go to his manager. How do I go and verify the workflow? Do you think, this could be an issue with the workflow or it could be something else?
    please help me gurus!!
    Thanks.MariaKutty

    Go to SE16 > CATSDB get the workitem ID for this pernr for the date workitem is missing and see in SWIA where the WF item is lying

  • How to create custom workflow for document library?

    Hi All,
    I have a document library with a custom  people picker column "assign to". Need to create approval workflow using designer, approval must send to person who is selected in "assign to" column. I tried with designer workflow,But finally
    facing "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient". How to fix and achieve my scenario? Thanks in advance!

    I would suggest you to firstly print the assign to value using "Log to history" action. Moslty it could be of three reasons,
    1. Assign to value is not getting populated correctly in your SPD workflow
    2. Email server is not configured properly, If alerts and other emails are workfing in your server then this would not be a reason for issue
    3. The user your trying to send an email does not have valid email
    do let us know if can get the user email in your workflow.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • Custom workflow for course registration

    Hi,
    I have an assingment to create list where items are courses and when new item is created you can give max participant value. List and columns are ok. (max participants(integer), current participants(integer), open/closed(choice), all participants(text)
    So this is what I want to do with workflow:
    When someone wants to join the course, person will click "Join course" button
    workflow starts and it will add +1 to 'current participants'
    workflow adds display name of person to column 'all participants'
    if 'current participants' is same as 'max participants' then course will change 'closed'
    I can use SP designer with workflow 2010 so is this impossible?
    I have possibility to use visual studio 2010 but i'm not very familiar with C# workflows.
    My biggest worries are that
    how to store all participants to one column (multiline text) with workflow
    how to display participants column only to admin users.
    Thanks for any help/suggestions.
    Antti Astikainen

    Hi Antti,
    I have done similar project in past and used only SharePoint Designer. Yes it is very much possible using SPD.
    how to store all participants to one column (multiline text) with workflow
    >> Maintain a multiline text column as you assumed and then just do
    attendee = CurrentItem:Attendee +";"+attendee
    how to display participants column only to admin users.
    >>   you can hide this column from default view or maintain a different list where course name(lookup)
    and this attendee (multi line) will be saved. You can add this multi line in master course list as well (depending on your design)
    Using SPD workflow you can update same list item / different list item / and it has many other action.
    For 'State Machine workflow' you may need VS.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Using customer workflow for delete action on active sync

    The following from is called by a partent form when the feedOp is delete.
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Configuration PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Configuration name='VDSActiveSyncDeleteForm' wstype='UserForm'>
         <Extension>
              <Form>
                   <Field name='viewOptions.Process'>
                        <Expansion>
                             <s>Custom User Delete</s>
                        </Expansion>
                   </Field>
                   <Field name='deleteFields'>
                   <Field name='resourceAccounts.currentResourceAccounts[Lighthouse].selected'>
                   <Expansion>
                   <s>true</s>
                   </Expansion>
                   </Field>
                   </Field>      
              </Form>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top' />
         </MemberObjectGroups>
    </Configuration>
    The default delete user workflow keeps running. I am verify this by setting the filetrace in the system configuration.
    What am I doing wrong?

    Looks like 'viewOptions.Process' does not work on a delete feedop....but this looks to work
    <Field name="processInputs.task.process">
    <Expansion>
         <s>NIPR Delete User</s>
    </Expansion>
    </Field>

  • Can not make work custom scope for run time created pages

    Greetings
    i have an application where you can choose a scope where you want to create your page using the create page task flow. the thing is that it is not working my pages are not being created on any new scope, looking through the folders of the MDS repository i only see a new folder where each new scope i create with mi app in runtime has a folder with the same name that the scope and inside of each...is an xml file....the path to those is /webcenter/mds-integServerRepos/<my_app_name>/oracle/webcenter/framework/scope/scopedMD/<custom_scope_name>/scope.xml
    does any body know why this is happening?

    Hello
    i am using the create page task flow.....here is the task flow configuration, it only has one parameter
    <taskFlow id="pagecreatepage1"
    taskFlowId="/oracle/webcenter/page/view/jsf/fragments/page-create-page.xml#page-create-page"
    activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="oracle_webcenter_page_createpage_scopename"
    value="${adminPagView.scopeName}"/>
    </parameters>
    </taskFlow>
    scope name is a method in my backing bean ..............and here is the method implementation
    public String getScopeName() {   
    ServiceContext sContext = ServiceContext.getContext();
    try {                   
    Scope scope = sContext.createScope("scope_test");
    sContext.setScope(scope);
    } catch (ScopeAlreadyExistsException scopeExistsException) {  
    System.out.println("Scope Already Exists...");
    return scopeName;
    the method executes correctly and in the mds folders y can see a folder for that scope in DefaultDomain/webcenter/mds-integServerRepos/<my_app_name>/oracle/webcenter/framework/scope/scopedMD/scope_test/scope..xml
    and my page jspx is in this path
    /oracle/webcenter/page/scopedMD/s8bba98ff_4cbb_40b8_beee_296c916a23ed/user/U364DAA907F1311DFAF1145A33DBB364E/Page1.jspx
    as you can see s8bba98ff_4cbb_40b8_beee_296c916a23ed is the defaul scope, maybe i am just creating a scope but no telling to the task flow to
    used it..............no sure what is happening

Maybe you are looking for

  • Photo Thumbnails on Apple TV

    Hi, Apple TV will not show thumbnails of my photos from iPhoto. It shows the thumbnail placeholders, and if you clik one of those the image comes up normally. With 7K photos it's hard to guess which photo is which. Thumbnails do show on my MoblieMe g

  • Godaddy has domain name. Hosting on BC. not working.

    Trying to put site public. Put all the correct name servers in go daddy NS1.WORLDSECURESYSTEMS.COM. Hosting on BC, but not being found on internet.

  • Compensation management approval process in MSS

    Hi, What is the business logic behind SAP standard for compensation approval in MSS? Manager A and manager B does compensation planning for their directly reporting employees and submits for approval. Manager C also plans for his directly reporting e

  • BI scheduler problem (AIX)

    hi! I've got a problem with configuring BI Scheduler. I followed the instructions, and it all seems fine, I can start the service, I can configure iBots, I can save them, they are in the database... but when I try to run one, it gives me this error m

  • Most common tweaks for n900 in 1 application - mae...

    i had most of these already done in my device, but added the hildon one. it works well, just follow the directions to install HERE everything is fully reversable. i pulled this info specs below from a great site  www.my-maemo.com enjoy! MaeModder is