Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to get a list of all tasks using CSSDK
Vijayan
I am looking for a way in CSSDK to get a list of all tasks. There is a method in CSWorkflowEngine named GetTasksByQuery which returns a list of tasks assigned to the logged on user. I want a list corresponds to All Jobs in the CC UI.
Any ideas?
Thanks,
Vijayan
Find more posts tagged with
Comments
Migrateduser
Hi Vijayan.
If you are interested in getting a list of the current jobs and tasks from the command line, the CLT that you need to use is iwgetwfobj:
% iwgetwfobj -husage: iwgetwfobj [-h] [-v] [-s servername] [-r] [id] -h Print this message -s servername Use servername as TeamSite server
Cheers~
Rishi gupta
brandon1
Here is the DTD for querying the workflow engine so you can get tasks/jobs based on these parameters using the getTasksByQuery method of the CSSDK.
Note this is in the CLT manual. You can test out your query from the command line and stick it in your java code when it returns what you are looking for.
<!ELEMENT wfquery (and|or|not|ownedby|active)>
<!ELEMENT and ((and|or|not|ownedby|active)+)>
<!ELEMENT or ((and|or|not|ownedby|active)+)>
<!ELEMENT not (and|or|not|ownedby|active)>
<!ELEMENT ownedby EMPTY>
<!ATTLIST ownedby v CDATA #REQUIRED>
<!ELEMENT active EMPTY>
<!ELEMENT taskquery (and|or|not|ownedby|active|wfactive|wfownedby|
workflow|needsattention|type|sharedby|undoableby)>
<!ELEMENT and ((and|or|not|ownedby|active|wfactive|wfownedby|
workflow|needsattention|type|sharedby|undoableby)+)>
<!ELEMENT or ((and|or|not|ownedby|active|wfactive|wfownedby|
workflow|needsattention|type|sharedby|undoableby)+)>
<!ELEMENT not (and|or|not|ownedby|active|wfactive|wfownedby|
workflow|needsattention|type|sharedby|undoableby)>
<!ELEMENT ownedby EMPTY>
<!ATTLIST ownedby v CDATA #REQUIRED>
<!ELEMENT active EMPTY>
<!ELEMENT wfactive EMPTY>
<!ELEMENT wfownedby EMPTY>
<!ATTLIST wfownedby v CDATA #REQUIRED>
<!ELEMENT workflow EMPTY>
<!ATTLIST workflow v CDATA #REQUIRED>
<!ELEMENT needsattention EMPTY>
<!ELEMENT type EMPTY>
<!ATTLIST type v (usertask, grouptask, externaltask,
cgitask, submittask, updatetask, endtask,
dummytask, locktask, wftask) #REQUIRED>
<!ELEMENT sharedby EMPTY>
<!ATTLIST sharedby v CDATA #REQUIRED>
<!ELEMENT undoableby EMPTY>
<!ATTLIST undoableby v CDATA #REQUIRED>
Current Project: TS 6.1
Environment: Solaris
mgal
This article might help you
http://devnet.interwoven.com/site.fcgi/techlib/051377
Thxs,
Mohammed Gazal.
Vijayan
Thanks a lot for this information. I searched in the CSSDK manual and Workflow developers guide for this info. Never thought it will be inthe CLT manual.
Thanks again,
Vijayan