Difference between Task Variable and Process Variable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2012 01:10 AM
What is difference between task variable and process variable ? how can i use them in WorkflowTaskQuery?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2012 03:01 AM
A workflow instance contains one or more tasks. Process variables apply to the entire instance of a workflow, task variables apply to a single task. At the beginning and end of each task you can map your task variables to process variables according to the needs of your workflow.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2012 03:14 AM
Thanks mrogers,
The variable which are declared in process defination are process instance variable which can be use throughout the process and task variables are variables which are declared in workflow model under task type.correct me if i am wrong. And how can i use them in WorkflowTaskQuery ? WorkflowTaskQuery provide two facilities one is taskCustomProps and second is processCustomProps. when i am firing query in which i have set task varialbes (which are declared on workflow model) in taskCustomProps but i am not getting the result. But when i am firing query in which i have set processCustomProps then i am getting the result. I dont know why this happens ?. Can you plz help me to figure out this?
The variable which are declared in process defination are process instance variable which can be use throughout the process and task variables are variables which are declared in workflow model under task type.correct me if i am wrong. And how can i use them in WorkflowTaskQuery ? WorkflowTaskQuery provide two facilities one is taskCustomProps and second is processCustomProps. when i am firing query in which i have set task varialbes (which are declared on workflow model) in taskCustomProps but i am not getting the result. But when i am firing query in which i have set processCustomProps then i am getting the result. I dont know why this happens ?. Can you plz help me to figure out this?
