How to set the conditions for item deletion approval workflow?

Hi,
I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
 process completes .
Change the behavior of the single task: 1.when a task is Pending.
[I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
When user deletes an item: 1. intimation mail.
How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
Thanks,
Praveen ji

Hi,
According to your post, my understanding is that you wanted to start approval workflow when item deleted.
You should first make some changes to trigger the workflow when you delete the item.
You can use the Event Receiver to achieve it.
In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • How to set the condition for dynamic Xquery in OSB11g

    Hi to all,
    I have a requirement like three different requests all are converted in to standard format.For this scenario I use dyamic X-query transformation.For Example RequestA,RequestB and RequesrC what ever request it should be converted into one standard format say Response.For this I create three X-Query transformations,and proxy service.If i get the request from RequestA related XQuery will execute (RequstA to Response transformation).
    RequestA------Response
    RequestB------Response
    RequestC------Response
    Actually my idea is based on requset schema name (like RequestA) it will convert,for this scenario how can I set condition in dynamicXquery.
    Thanks in advance.

    Hi,
    Can u plz tel how make the x-query for an XML file,basically i follow the below link
    http://beatechnologies.wordpress.com/2010/12/01/dynamic-xquery-in-oracle-service-bus/
    In this example I'm creating the routing rulesXML file in Eclipse,I'm unable to assigning this xml file to an variable.I create a Xquery for this XML with any type,And I create GetRouting.XQ.can u pls tel which is correct method to Xquery with any type for this XML or else i send my jar file,tell me any modifications are required.
    Thanks in advance

  • How to enable root on mac on 10.9.2 and how to set the password for the same ?

    how to enable root on mac on 10.9.2 and how to set the password for the same ?

    http://support.apple.com/kb/ht1528
    Follow the steps for Lion.
    But, why are you doing this? I've never found the need to do that.

  • Adobe Form -  How to set a condition for a Subform

    Hi All
    I am new in Adobe Form and learing it - (I had some knowledges of SmartForm) - One of the requirement I have to do is to print out a different layout (subform) according to a value of a flag.
    In Smartform, I can draw diffrent layouts and put a condition on each layout so each one can be printed accroding to the flag value.
    In Adobe Form, the subform (or any other object) cannot be conditional set - I don't know how to do it - Could comeone please show me how - I reward points for any reply - Thanks

    You are excused with your English - and you must excuse mine , too
    Your questions:
    But, how i write the condition ?
    1- If ( article.table1 = Null ) then ... ?
    2- If ( article.table1.Rangée1.SubForm2.lib_article.rawValue = " " ) then... ?
    Try this:
    1- // Locate the table node from to down
    var tNodes = xfa.resolveNodes("Table1[*]");
    If (tNodes.value == NULL)  {
        tNodes.presence = "Hidden" }     
    or
    2- // locate the varable fields and loop thru to check if they are all empty
    var fNodes_1 = xfa.resolveNodes("article.table1.Rangée1[*].SubForm2.num_article");
    var fNodes_2 = xfa.resolveNodes("article.table1.Rangée1[*].SubForm2.lib_article");
    var fNodesLength = fNodes_2.length;
    var table_empty = "Y";
    for (var fNodeCount = 0; fNodeCount < fNodesLength; fNodeCount++) {
       If     (fNodes1.item(fNodeCount).rawValue <> " ") or
              (fNodes2.item(fNodeCount).rawValue <> " ")      {
                 table_empty = "N";
    // Now find the table node and hide if if necc
    var tNodes = xfa.resolveNodes("Table1[*]");
    If table_empty = "Y"  {
        tNodes.presence = "Hidden" }    
    You must place those codes at the Subform Article level in Javascript mode
    Good Luck
    Edited by: Liem Van Duong on Jun 13, 2008 2:45 AM
    Edited by: Liem Van Duong on Jun 13, 2008 2:46 AM

  • How to set the width for a selectManyShuttle component

    Hi,
    I'm using selectManyShuttle component from Oracle ADF Core and some of the items in the showing list are long, therefore the width of selectManyShuttle expands the page. How to set the width property for selectManyShuttle component? After that does selectManyShuttle provide horizontal scrollbar as well?
    Thanks in advance,
    lapi
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    Solution here:
    Re: ADF Faces Scrollable Panel or Scroll Bar inside a component
    Regards
    Grant

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • How to set the background for all components?

    hi
    Does anybody know how to set the DEFAULT background color in an application.. I need it because in jdk 1.3 the default bgcolor is grey and in 1.5 it is white.. and I wish white as well.. so to make it also white in jdk 1.3 I need to use the (a bit annoying) anyContainer.setBackground( Color.white ); and these are lots in my app.. So my question is: is there such an overall class with a function (say UIManager.setComponentsBackground( Color color ) ) for such a purpose?
    any tip or link would be greatly appreciated

    Does anybody know how to set the DEFAULT background color in an applicationthis might get you close
    import java.awt.*;
    import javax.swing.*;
    import java.util.Enumeration;
    class ApplicationColor extends JFrame
      public ApplicationColor()
        setApplicationColor(Color.RED);
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel jp = new JPanel(new BorderLayout());
        jp.add(new JTextField("I'm a textfield"),BorderLayout.NORTH);
        jp.add(new JComboBox(new String[]{"abc","123"}),BorderLayout.CENTER);
        jp.add(new JButton("I'm a button"),BorderLayout.SOUTH);
        getContentPane().add(jp);
        pack();
      public void setApplicationColor(Color color)
        Enumeration enum = UIManager.getDefaults().keys();
        while(enum.hasMoreElements())
          Object key = enum.nextElement();
          Object value = UIManager.get(key);
          if (value instanceof Color)
            if(((String)key).indexOf("background") > -1)
              UIManager.put(key, color);
      public static void main(String[] args){new ApplicationColor().setVisible(true);}
    }

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • How to set the size for height of iView tray?

    Hi,
    I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
    But the size of tray/window which is displayed in the page is very small.
    How to increase the height of that Tray/window/iView containing my component?

    Hi,
    By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
    to do this follow the setps:
    goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
    and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
    if you want the end user to modify this property set the property to read/write .
    *********please reward points if the information is helpful to you********************

  • How to set the status for a customer plan to RELEASED.

    Hello all,
    I created a program for mass creation of customer plans. But after the creation of a plan, the status should be set to released, so that the user can go about creating the trade promotions for the customer plan. Can anybody tell me how to set the status of a customer plan to RELEASED.
    Thanks,
    Disha.

    Hi Clemens,
    I am not talking about doing it in the CRM_UI transaction..I created a program..which would create the customer plans based on the planning account data provided. I was succesfull in creating the plans, but I am not knowing how to release it, if only anybody can tell me about a Function module or method, which can help me do this, that would be great
    Thanks,
    Disha.

  • How 2 Set the logic for report 2 run 1st of everymonth......

    Hi Experts,
    i ve developd a HR-ABAP report in that Some part of code will Mon-Fri, Excluding Public holidays and sat & sundays...( i.e no public holidays and no sat & sundays)
       and some part of should Run on 1st of everymonth.... but 2 parts of code should be in same report..
    How can set the logic to run the report respective times....
    Thanks in Advance....
    sudeer.

    you can code this but need some good expertise on fm's  , date handling techniques and subroutine call coding.
    1.
    to make the code run only on 1st of every month
    capture the rundate of ur prog .. take value of  sy-datum
    ex.. 01.xx.yyyy
    or date std will be yyyymmdd so check for dd = 01 ..
    so per logic first two chars show that its first of any month in any year ..
    if yes
    execute the logic for the first of every month ..
    endif.
    2.
    where the code needs to be run on mon-fri and not on public holidays / sun / sat ..
    first fetch the day based on date .. like mon or tue or wed .. except sat and sun..
    second check whether if m-t-w-th-fr if any of them is  a holiday or not
    u need to check the date in the calender list like tholi thoc and .. to check whether that is a holiday or not ..
    coming to sat and sundays .. u need to check the day for date using function modules and build the logic ...
    br,
    vijay..

  • How to set the #HELPLINK# for a page

    I tried to find, how or where can I set the #HELPLINK# for each individual page/application component?

    Click on --
    Edit link for Page> Click "Edit Default" link on Banner >
    Under the "Banner Links"
    provide value something like this:
    Label = Help
    URL = /pls/portal30/docs/myhelp.html
    Icon = U can upload any icon here.
    For Application Components = See the Second Last tab on "Edit Component".
    Thanx,
    Chetan.

  • How to set the header for second page

    Hello all,
    I'm trying to set different header for first page and page number should starts from second page.
    Below is the sample code to set the header for each and every page.
    DECLARE
    hApplication OLE2.OBJ_TYPE;
    hWindow OLE2.OBJ_TYPE;
    hPane OLE2.OBJ_TYPE;
    hView OLE2.OBJ_TYPE;
    hDocuments OLE2.OBJ_TYPE;
    hDocument OLE2.OBJ_TYPE;
    hSelection OLE2.OBJ_TYPE;
    hParagraphFormat OLE2.OBJ_TYPE;
    hRange OLE2.OBJ_TYPE;
    hFields OLE2.OBJ_TYPE;
    hFont OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    wdAlignParagraphLeft CONSTANT number(3) := 0;
    wdAlignParagraphCenter CONSTANT number(3) := 1;
    wdAlignParagraphRight CONSTANT number(3) := 2;
    wdSeekCurrentPageHeader CONSTANT number(3) := 9;
    wdSeekCurrentPageFooter CONSTANT number(3) := 10;
    wdSeekMainDocument CONSTANT number(3) := 0;
    wdFieldPage CONSTANT number(3) := 33;
    wdFieldNumPages CONSTANT number(3) := 26;
    wdPageBreak CONSTANT number(3) := 7;
    wdStory CONSTANT number(3) := 6;
    myTab CONSTANT varchar2(1) := chr(9);
    myBlue CONSTANT number(8) := 16711680; --FF0000
    myGreen CONSTANT number(8) := 65280; --00FF00
    myRed CONSTANT number(8) := 255; --0000FF
    myDkGreen CONSTANT number(8) := 32768; --008000
    myBlack CONSTANT number(8) := 0; --000000
    myText varchar2(2000);
    BEGIN
    hApplication:=OLE2.CREATE_OBJ('Word.Application');
    OLE2.SET_PROPERTY(hApplication, 'Visible', 1);
    hDocuments := OLE2.GET_OBJ_PROPERTY(hApplication, 'Documents');
    hDocument := OLE2.INVOKE_OBJ(hDocuments, 'Add');
    -------- Create Header and Footer --------
    hWindow := OLE2.GET_OBJ_PROPERTY(hApplication, 'ActiveWindow');
    hPane := OLE2.GET_OBJ_PROPERTY(hWindow, 'ActivePane' );
    hView := OLE2.GET_OBJ_PROPERTY(hPane, 'View' );
    ---- Header Section ---
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageHeader);
    hSelection := OLE2.GET_OBJ_PROPERTY(hApplication, 'Selection');
    hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
    OLE2.SET_PROPERTY(hFont, 'Name', 'Times New Roman');
    OLE2.SET_PROPERTY(hFont, 'Size', 10);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', MyBlue );
    hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
    OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
    OLE2.RELEASE_OBJ(hParagraphFormat);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'This is a');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.INVOKE(hSelection, 'TypeParagraph');
    OLE2.SET_PROPERTY(hFont, 'Size', 16);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', MyDkGreen );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'Test Header');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    ---- Footer Section ----
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageFooter);
    hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
    OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
    OLE2.RELEASE_OBJ(hParagraphFormat);
    hFields := OLE2.GET_OBJ_PROPERTY(hSelection, 'Fields');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'Page ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG_OBJ(args, hRange);
    OLE2.ADD_ARG(args, wdFieldPage);
    OLE2.INVOKE(hFields, 'Add', args );
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, ' of ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG_OBJ(args, hRange);
    OLE2.ADD_ARG(args, wdFieldNumPages);
    OLE2.INVOKE(hFields, 'Add', args );
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(hRange);
    OLE2.RELEASE_OBJ(hFields);
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekMainDocument);
    OLE2.RELEASE_OBJ(hView);
    OLE2.RELEASE_OBJ(hPane);
    OLE2.RELEASE_OBJ(hWindow);
    -------- Insert Text --------
    hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
    OLE2.SET_PROPERTY(hFont, 'Name', 'Arial');
    OLE2.SET_PROPERTY(hFont, 'Size', 12);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE );
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    OLE2.INVOKE(hSelection, 'TypeParagraph');
    myText := myTab || 'This text is on the ';
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, myText);
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', myRed);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'first ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'page.');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, wdPageBreak);
    OLE2.INVOKE(hSelection, 'InsertBreak', args);
    OLE2.DESTROY_ARGLIST(args);
    ----page 2
    myText := myTab || 'This text is on the ';
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, myText );
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlue);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'second ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'page.');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    ---- go to the top of the first page
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, wdStory);
    OLE2.INVOKE(hSelection, 'HomeKey', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(hFont);
    OLE2.RELEASE_OBJ(hSelection);
    OLE2.RELEASE_OBJ(hDocument);
    OLE2.RELEASE_OBJ(hDocuments);
    OLE2.RELEASE_OBJ(hApplication);
    END;
    Please help me out
    Thanks,
    Bhavana

    Click on --
    Edit link for Page> Click "Edit Default" link on Banner >
    Under the "Banner Links"
    provide value something like this:
    Label = Help
    URL = /pls/portal30/docs/myhelp.html
    Icon = U can upload any icon here.
    For Application Components = See the Second Last tab on "Edit Component".
    Thanx,
    Chetan.

  • How to set the classpath for external .jar files after importing?

    Hi techs,
    How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
    urgent

    I got it.
    after importing the jar file to the perspective,we need to right click on project name, go to proprties,
    goto java build path,
    there we need to include the external jar files.

  • How to set the priority for Commit Server?

    Hi all,
    I want to know how to set up the priority for committing documents.
    I'm having two different odc applications and i want to commit documents belongs to one application (URGENT) as soon as it has complete the indexing. (I'm running commit server every second for this (URGENT) application).
    But once the commit server start to commit batches belongs to one application it continues until finishes, and then only it switch to the URGENT application even though indexed documents are there.I have tested with batch priority, Batch status fields in commit server.
    What is exactly happen in setting batch priority ?
    How do i switch commit serve to run urgent batches (which is belongs to another application) as soon as indexed??
    I can use ODC or ODDC.
    Thank You.....

    Don't worry - I'm more think aloud, so it is more a hypothesis than a solution.
    You write that
    We are using ODC to Index the documentsWhat exactly does this mean? If it means that a user types in metadata values, then you could take a look whether those metadata are needed for the item to be checked in (like the mentioned security group), or whether it is "other" metadata (e.g. supplier, invoice number, etc.) that you could, in theory, fill in in your application in IPM - imagine that you use IPM to check in the document and all you have is a TIFF.
    Btw. you also write that
    (we) use Input agent to sent documents to IPMI thought that ODC (Commit Profile) does this work for you, or not? If you use ODC to commit to a disk, and Input agent to get it from a disk to IPM, how about using a direct commit profile to IPM?

Maybe you are looking for