How to update task status from custom task in state machine workflow

i m using custom task for state machine workflow
i am using
if(this.onTaskChangedSupervisorAction_AfterProperties.ExtendedProperties["Workflowstatus"].ToString().Contains("Approved"))
if above is true moving forward its working fine but i want to update the status field of task as i can update the title and due date for the task but how can i change the status once approved it
should show the status as approved it's only showing in progress
this.CreateTaskSupervisorAction_TaskProperties.Title="supervisor task"
MCTS,ITIL

If your task shows In Progress state then I think you need to look at your workflow and make sure you are using Complete Task activity and if you are already using Complete Task Activity then verify the Correlation ID. Ideally you are not required to set
this value in workflow. You simply use the Complete Task Activity.
If you are running into issue where your workflow is staying in In Progress state even after the task is complete then you can look at the following blog post.
How to programmatically complete Approval workflow task
Amit

Similar Messages

  • Stat machine workflow task workflow status different values on different state activity(Approval level)

    i have developed the State machine workflow in which i am using default workflow task
    i have added one status dropdown and that is having approve or reject that i set using workflow task drop down values
    now my requirement is that when my workflow goes to different approval i need to have different status values in dropdown
    for example
    on manager approval state activity i need to add additional status value forward to legal
    but when it moved to next activity this task status field should show only approve and reject
    in summary i need to have different status values for workflow task when it moved to different state activity(approval levels)
    can we set these status field of task for state machine workflow programtically as well like for different approval level of task i need different status to be set for the dropdown of task status field
    MCTS,ITIL

    Hi Shahid Siddique,
    I have seen a similar thread from you about this issue, create custom form for the seperate form is a considerable workaround, you can have a check whether it works.
    http://social.technet.microsoft.com/Forums/en-US/9baa0c32-1cde-4c58-aa7c-3568ccf0cdc9/different-approval-level-of-task-i-need-different-status-to-be-set-for-the-dropdown-of-task-status?forum=sharepointdevelopmentprevious
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Create Multiple tasks for Single Item in List using state machine workflow in sharepoint

    Hi,
    I want to create multiple create tasks for Single Item in List based on Assigned to column using state machine Workflow through visual studio
    Here Assigned to column allows multiple users. so i have to create task for every user based on column .
    I'm trying for this but i didn't got any solution
    Please provide solution for this.

    Hi,
    According to your post, my understanding is that you wanted to allow multiple users to approve.
    There are some articles about creating parallel tasks in state machine workflow, you can have a look at them.
    http://www.codeproject.com/Articles/477849/Create-Parallel-Task-in-State-Machine-Workflow-in
    http://msdn.microsoft.com/en-us/library/office/hh128697(v=office.14).aspx
    http://social.technet.microsoft.com/Forums/office/en-US/b16ee858-4360-479a-a686-4ee35b7be9db/sharepoint-2010-workflow-creating-multiple-tasks?forum=sharepointdevelopmentprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to REpublish Custom Task Forms (InfoPath) to SharePoint 2010 State Machine Workflows

    I am new to SharePoint. Sorry if answer to my question is obvious.
    I've create Custom Task Form in InfoPath and publish it (File/Publish/Network Location [Form Template Path and filename='MYPROJECT/Forms/ApprovalForm.xsn'; Form template name='ApprovalForm'], in the next window I've cleared Public URL according to the articlehttp://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo).
    After it I've added module Forms, and added ApprovalForm.xsn from the existing items.
    My xml files: Elements.xml
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Workflow
    Name="Order New Server"
    Description="My SharePoint Workflow"
    Id="482cbc86-b717-4981-a49a-3cf4c89e9399"
    CodeBesideClass="Myproj.OrderNewServer.OrderNewServer"
    CodeBesideAssembly="$assemblyname$"
    TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
    <Categories/>
    <AssociationData><Data></Data></AssociationData>
    <MetaData>
    <AssociationCategories>List</AssociationCategories>
    <Task2_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2012-03-09T14-11-55</Task2_FormURN>
    <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
    </MetaData>
    </Workflow>
    </Elements>
    Feature.Template.xml:
    <?xml version="1.0" encoding="utf-8" ?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Receiverlass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
    <Properties>
    <Property Key="GloballyAvailable" Value="true" />
    <Property Key="RegisterForms" Value="Forms\*.xsn"/>
    </Properties>
    </Feature>
    My form work fine, but when I make changes and republish it, it doesn't update (I see old form). What I tryed:
    IISReset
    Clear all cookies and cache in IE
    Retract solution, restart VS2010, reboot computer.
    Change assembly number, guid.
    I have no ideas, what can I try for republish my form with changes.
    Thank you in advance for any suggestions.
    PS: sorry for my writing. English is not my native language.
    PPS: when I save new Form to new location and add it to the project, it works.

    I've found how can I republish changes. But it seems more like crutch than solution, but it works:
    After republishing InfoPath form, I delete file from project (DEL on ApprovalForm.xsn in Solution explorer) and after it add it again. (Add/Existing Item). And then redeploy! Hurray!
    Is there any way to redeploy a Task Form directly on the server without importing it in Visual Studio again? I am using some data connections in my task form which are different for different environments (staging, dev. etc.). Seems like I've to create a separate
    Workflow WSP file for each envrionment. Any comments?

  • BDOC Error : "BDoc stored before update task (intermediate state)"

    Hi Experts,
    I have stuck BDOCs under BDOC type "BUS_TRANS_MSG" and the error msg as "BDoc stored before update task (intermediate state)". The error occurs when BDoc Message was not written to qRFC queue. I checked the update tasks in transaction
    SM13 and could find the entries there. I opened one of the entry and was able to spot the error in one of the function module.
    The error was encountered at some later point in time and is been fixed. I now want to re-send the update so that the new update is written and the BDOCs are processed.
    Kindly guide me through the steps that need to be performed in order to re-process the BDOCS.
    Thanks,
    Chaudh

    Hi,
    BDocs were stuck at time when we really had a problem; now the problem is re-solved. I have checked SM13 we have entries highlighting the problem, but i really don't know how to re-update the error entries in SM13.
    I believe once that is done then i might possibly be able to re-process the BDOCs in SMW01.
    Thanks,
    Chaudh

  • How to update duplicate row from table

    Hi,
    how to update duplicate row from table?
    First to find duplicate row then update duplicate row with no to that duplicate row in oracle.
    can you give me suggestion on it?
    Thanks in advance.
    your early response is appreciated...

    In order to find a duplicate row, see:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1224636375004
    (or search this forum, your question has been asked before)
    In order to update it, just create and use an Oracle sequence, have it start and increment at a value that doesn't exist in your table.
    If that doesn't get you going, post some CREATE TABLE + INSERT INTO statements, and the results you want from them, in other words: a complete testcase.

  • How to update the status of Outbound IDOC in case of error

    I want to know about how to update the status of Outbound IDOC in case of error.
    I am using message control functionality here.

    HI,
    If u r using the standard message and basic type
    u can do it in the FM attached to the basic and message type.There u need to write ur own message instead of standard SAP message..chek if there r any userexits available in the FM..where u can overwrite ur own message ..
    If u r using the Zmessage and Zbasic type
    then u need to declare an internal table of EDIDS structure and then append ur message to the internal table..
    idoc_status-docnum   = idoc_contrl-docnum.
      idoc_status-msgty    = <message type>
      idoc_status-msgid    = message-id.
      idoc_status-msgno    = message-number.
      idoc_status-msgv1    = message-message_v1.
      idoc_status-repid    = sy-repid.
      idoc_status-status   = <give the error status>.
      APPEND idoc_status.
    Reward if u find useful
    Regards,
    Nagaraj

  • HT1338 i have imac 8,1 how i update my software from 10.5.8 to 10.6.8

    i have imac 8,1 how i update my software from 10.5.8 to 10.6.8

    Call 1-800-MY-APPLE (or your county's support number).  Apple is selling single user disks for $19 or 5-user family disks for $29.   If you think you will another copy of SL in the future, buy the $29 family pack before Amazon at $100+ becomes your only source.

  • Monioring - How to remove deployment status from monitoring

    How to remove deployment status from monitoring in SCCM 2012
    Thanks in advance
    NTRao

    You can also install this right click tool to be able to delete the deployment direct from the monitoring node.
    http://myitforum.com/myitforumwp/2013/04/16/how-to-add-a-delete-deployment-action-to-right-click-actions-in-configmgr-2012/
    Cheers Paul | http://sccmentor.wordpress.com

  • How to update Ipad 2 from IOS 4.3.5 to IOS 5. Itunes won't let me do it because it keeps showing error messages asking me to check if my network is active.

    how to update Ipad 2 from IOS 4.3.5 to IOS 5? Itunes won't let me do it because it keeps showing error messages asking me to check if my network is active.

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 7.1.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    You can no longer update to iOS 6.x, or down grade the iOS.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and antivirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 7.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
    How to Upgrade to iOS 7
    The iOS 7.0 update requires around 2.5 GB of storage space, so if your iPad is almost full, you may need to clear up some space. You can check your available space in Settings -> General -> Usage.
    There are two ways to upgrade to iOS 7: You can use your Wi-Fi connection, or you can connect your iPad to your PC and update through iTunes. We'll go over each method.
    To upgrade using Wi-Fi:
    Note: If your iPad's battery is under 50%, you will want to plug it into your charger while performing the update.
    Go into the iPad's Settings.
    Locate and tap "General" from the menu on the left.
    The second option from the top is "Software Update". Tap this to move into the update settings.
    Tap "Download and Install". This will start the upgrade, which will take several minutes and will reboot your iPad during the process. If the Download and Install button is grayed out, trying clearing up some space. The space required by the update is mostly temporary, so you should gain most of it back after iOS 7 is installed.
    Once the update is installed, you may have to run through the initial steps of setting up your iPad again. This is to account for new features and settings.
    To upgrade using iTunes:
    First, connect your iPad to your PC or Mac using the cable provided when you purchased your device. This will allow iTunes to communicate with your iPad.
    You will also need the latest version of iTunes. Don't worry, you will be prompted to download the latest version when you launch iTunes. Once it installs, you may be asked to setup iCloud by logging into your iTunes account. If you have a Mac, you may be prompted on whether or not you want to enable the Find my Mac feature.
    Now you are ready to begin the process:
    If you upgraded iTunes earlier, go ahead and launch it. (For many, it will launch automatically when you plug in your iPad.)
    Once iTunes is launched, it should automatically detect that a new version of the operating system exists and prompt you to upgrade to it. Choose Cancel. Before updating, you will want to manually sync your iPad to make sure everything is up to date.
    After canceling the dialog box, iTunes should automatically sync with your iPad.
    If iTunes doesn't automatically sync, you can manually do it by selecting your iPad within iTunes, clicking on the File menu and choosing Sync iPad from the list.
    After your iPad has been synced to iTunes, select your iPad within iTunes. You can find it on the left side menu under Devices.
    From the iPad screen, click on the Update button.
    After verifying that you want to update your iPad, the process will begin. It takes a few minutes to update the operating system during which time your iPad may reboot a few times.
    After updating, you may be asked a few questions when your device finally boots back up. This is to account for new settings and features.
     Cheers, Tom

  • How to check system status from Windows command line?

    Does anyone has an idea how to check system status from Windows command line? In UNIX we use startsap check, unfortunately I didn't find an appropriate command provided by SAP.
    The only idea we have is to use
    tasklist /FI "Username eq SAPService<SID>" | find "disp+work"
    which isn't as nice as startsap check.

    Hi,
    In windows you can use the command
    go to profile directory in command prompt and the give the following command to check the status of the instance.
    sapstart check pf=START_DVEBMGS<nr>_<hostname>
    that means you need to mention start profile or instance profile. So that it will say whether the instance is running or not.
    If you want any other information please reply back to me.
    Thanks,
    Chaitanya.

  • How to update iphone 4 from 4.3.1 to ios 6, How to update iphone 4 from 4.3.1 to ios 6

    How to update iphone 4 from 4.3.1 to ios 6, How to update iphone 4 from 4.3.1 to ios 6

    Plug it into your computer running iTunes and click the check for updates button if you're not prompted to update it automatically.
    You must be running iTunes 10.7 on your computer.

  • How to update info cube from PSA

    Hi,
    how to update Info cube from PSA.
    Coz we have changed the update rule for one characteristic.What is the implication of updating it from the PSA.
    Regards,
    Viren.

    Hi,
    Now there is one more problem in update rule.
    We are using " 2LIS_03_BF " as datasource.which doesn't contain Sales organization,Division or Distribution channel.
    So in transfer rule for the infosource "2AF_MM_INV_1" we can not update the salesorg,division and Distribution channel.In communication structure all these objects are assigned to respective info objects.
    Now in Update rule we have kept Division and Sales organization as initial.Still we are getting correct data for the Division and not a single record contains Sales organisation and for distribution channel we are using update routine..
    SELECT SINGLE DISTR_CHAN INTO DISTR_CHAN
    FROM /BI0/MCUST_SALES WHERE DIVISION = COMM_STRUCTURE-DIVISION
    AND SALESORG = COMM_STRUCTURE-SALESORG
    AND CUST_SALES = COMM_STRUCTURE-CUST_SALES.
    Now my problem is this update rule fatches record on the basis of cust_sales only as comm_structure doesn't contain any thing for division and sales org.So how to get value for sales org and Division in Communication structure.
    Summary, I want to get data for Distribution channel and sales org in my cube.
    Pls help me out...
    This is very urgent..
    Regards,
    Viren.

  • Hi, how to update my downloads from 128 to 256 kbits ?

    Hi, how to update my downloads from 128 to 256 kbits ?

    Al Tuco,
    You can do it with iTunes Match.
    See this document:  iTunes Store: iTunes Plus Frequently Asked Questions (FAQ)  and read the section on "Can I upgrade my previously purchased music to iTunes Plus?"

  • How do i retrieve photos from iphoto on a time machine backup?

    how do i retrieve photos from iphoto on a time machine backup?

    To restore the entire library do the following:
    For a single photo you need to  know the file name?  If so you can extract photos one at a time out of the TM backups for import into iPhoto.  You would do it as follows:
    1 - download and launch  Find Any File.
    2 - select the Time Machine external hard drive.
    3 - enter the file name and search. It will take longer than a normal search due to the nature of the Time Machine structure, maybe up to 1 miinute.
    4 - select the file that is in the Masters or Originals folder in the search results window and drag to the Desktop where it can be imported into iPhoto:

Maybe you are looking for

  • IPhone 3G isn't recognized by iTunes

    Please help. My wife's 3G connects to iTunes but my 3G won't. This makes me think the issue is with my phone. I've re-installed iTunes and updated drivers and reset the phone. I've tried all of this prior to testing the other phone and the mini I use

  • What are the requirements for successful use of PDSElementInsertMCAsKid()?

    I've been struggling all day. On Friday I had working code that merged content from multiple PDF pages into a single page in a new PDF. Optional content and object data were preserved. However, I needed to create my own optional content around each p

  • An odd problem when error handling

    hi experts I encountered a very odd problem when trying to show up an error message... and hope someone can help me out. I defined a standard action in the view, and wrote some lines of code to check the input data in the predefined methodWDDOBEFOREA

  • Menus pop up when typing the same word in Koteri

    When I type Japanese words again and again, a menu pops up with the kanji that I've used previously. How do I select this word from the menu so I don't have to keep typing? I've clicked on the word, and it doesn't do any good.

  • Installing Adobe Acrobat Reader X into Adobe Elements 6.0

    I am using Adobe Elements 6.0 which comes with Adobe Reader 6.0.  In the past per a TechNote (331114), I was able to update the Adobe Reader from the 6.0 to the latest version I am currently using (9.0) by putting the file into the folder: "Program F