Quick flow tutorial (7): Add any signature-moreapprove

Source: Internet
Author: User

Any signature means that the task operator user can request approval comments from other users. If user a can submit the task to B, C requires signature, B, c, input comments, and re-allocate the task to a, a can see the comments of B and C.

Quickflow provides the moreapprove activity for signing.

Let's look at an example.

1) Design a workflow.

Use QFD to create a workflow and add a workflow variable: approver, which is used to pass the approval user account.

2) drag a moreapprove activity to the designer, draw a line to connect start and moreapprove, and bind the user attribute to the workflow variable aprover.

3) publish a Workflow

4) Design workflow forms

Add a text box for entering the user account in the launch form:

 
   
    
   
  
approver:

Add the followingCode:

 
Protected void page_load (Object sender, eventargs e) {This. startworkflowbutton1.executing + = new eventhandler <system. componentmodel. canceleventargs> (startworkflowbutton?executing);} void startworkflowbutton=executing (Object sender, system. componentmodel. canceleventargs e) {quickflow. core. workflowcontext. current. updateworkflowvariable ("approver", this.txt approvor. text. trim ());}

 

5) after updating the form, we can see the effect.

Start the workflow and enter the approver.

Approval page.

Select the signature user.

Task tracking:

Download sample code:

 

 

 

Bytes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.