Can you retrieve a task list for a user without specifying that user's connection settings?
Hi
I would like to know if it is possible to obtain a list of workspace tasks for a user of my choice. In the following code, taken from the relevant quickstart, I am able to retrieve a list of tasks for "administrator" because it is the "administrator" settings specified in the connection properties when obtaining an instance of ServiceClientFactory. If I wanted to obtain a list of tasks for user "greg", for example, is there a way I can do this without having to specify the settings for "greg" in the connection properties? I tried to invoke the setUserId() method of the TaskFilter interface but no tasks are returned for user "greg" in that scenario. The aforesaid user has 3 tasks assigned to him. If I specify the user name and password for "greg" in connection settings, I am able to retrieve his list of tasks successfully. However, this is undesirable because I want to be able to retrieve a list of tasks for any user of my choice, by passing a parameter. Is that possible? Code follows:
//Start of code
import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
import com.adobe.idp.taskmanager.dsc.client.TaskManagerClientFactory;
import com.adobe.idp.taskmanager.dsc.client.TaskManagerQueryService;
import com.adobe.idp.taskmanager.dsc.client.query.StatusFilter;
import com.adobe.idp.taskmanager.dsc.client.query.TaskFilter;
import com.adobe.idp.taskmanager.dsc.client.query.TaskRow;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
public class RetrieveTaskInfo {
public static void main(String[] args) {
try {
//Set connection properties required to invoke LiveCycle
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
//Create a TaskManagerQueryService object
TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager(myFactory);
//Define search criteria by performing a search on
//Assigned tasks (tasks assigned to the user specified
//in connection properties)
TaskFilter filter = queryManager.newTaskFilter();
StatusFilter sf = filter.newStatusFilter();
sf.addStatus(StatusFilter.assigned);
filter.setStatusFiltering(sf);
//Perform the search
List result = queryManager.taskList(filter);
//Create an Iterator object and iterate through
//the List object
Iterator iter = result.iterator();
while (iter.hasNext()) {
TaskRow myTask = (TaskRow)iter.next();
//Get the task identifier value
long taskId = myTask.getTaskId();
//Get the status of the task
long taskStatus = myTask.getTaskStatus();
//Get the name of process on which this task is based
String processName = myTask.getProcessName();
//Get the task description
String taskDes = myTask.getDescription();
System.out.println("The task identifier is " + taskId + "\n" +
"The status of the task is " + taskStatus + "\n" +
"The name of the process on which the task is based is " + processName + "\n" +
"The task description is " + taskDes);
} catch(Exception e) {
e.printStackTrace();
//End of code
Thanks
Darren
Paul,
Thanks very much, I never tried just asking for the parameter I was looking at the entire list coming back from a query with no filters. Using the DBMS_LDAP package you can in fact get their GUID.
I understand your concern for the use of the field and for other reasons have moved to a different identifier to tie OID accounts to our internal application user accounts.
Thanks very much, I'm still glad to know how to do get at the info.
Similar Messages
-
Where can you download NAM 5.1 for windows7?
Where can you download NAM 5.1 for windows7? it seems that i cannot find it, the ones on the web are all for Linux,
thanks,
HanHi,
Do you mean NAM for Network Analysis Module? As that is a module/appaliance which requires a specialized designed hardware and cannot be installed on Softwares like for Windows/Linux.
NAM is a Hardware module/appliance that monitors and analyzes the traffic coming/going from network devices. Currently, there are multiple variations of the NAM, software and hardware, such as the NME-NAM for the Branch Integrated Services Routers (ISRs), NAM-1/NAM-2 for the Cisco Catalyst® 6500 Series Switches, and Cisco NAM 2200 appliances. Also, there is Cisco NAM Virtual Blade supported on the Cisco WAVE-574 and WAE-674 appliances.
For more details please check :
Cisco Network Analysis Module (NAM) Deployment Guide
Network Analysis Module (NAM) Products
Let me know if I did not understood the issue properly and you meant somthing else.
-Thanks -
HT1911 how can you retrieve your passcode for your ipod if you have forgotten it?
how can you retrieve your passcode for your ipod touch if you have forgotten it and it became disabled?
You cannot retrieve it.
You can do as the manual tells you to do and restore the ipod.
If you are unable to restore, then type "unable to restore" into the search bar at the top of this page by Support and read the resulting help articles. -
HOW CAN WE ASSIGN THREE TASK LIST TO THREE DIFF PRODUCTION ORDER
Respected All
we have one material which is used for three places FIRST IN MILL1, 2ND IN MILL2 AND THIRD IN TRIMMER MILL.
the only thing which differentiate this single material is the production order. we have 3 different production order but one single material. for this we have created 3task list. my problem is when we create batch and confirm it through co15, the lot reflects in QA32. but is not allowing for USAGE DECESION. For that we have to go to QA02, assign the task list and then again go to QA32 and do the usage decesion. is there any method by which we can assign three task list to three production orders so that qa02 step could be avoid.
pls reply
thanks
abhaysir
thank you for the reply could you please tell me in which transaction we find this user exit.
thanks
abhay -
Change Request Management "There is no task list for this project"
Hello!
I would like to use the functionality of CharM in SOLMAN 4.0.
When I enter the Tcode /n/tmwflow/proj I receive the waring/error "There is no task list for this project" (/TMWFLOW/TRACK_N114)
If I create my own task list via Task list --> create
I get the warning "You cannot change task lists in the SAP namespace"
What are the steps to define task list for my project?
Do I need to configure SPRO ... --> Extended Configuration --> Schedule Manager?
The second warning I get: "NO CTS projects created yet" or
"The Solution Manager project does not have an active CTS project yet".
How can these warnings/errors be corrected?
Thank you very much!
regardsHi,
Pls click the check button(next to activate button)
see the SLG1 log generated remove the errors shown in red.
One it is done u press the refresh button & thn u cn create the task list
chk
https://websmp202.sap-ag.de/~sapdownload/011000358700000657692007E/ECTS_CHARM_SP12.PDF
/people/dolores.correa/blog/2008/07/26/first-steps-to-work-with-change-request-management-scenario
http://help.sap.com/saphelp_sm32/helpdata/en/0c/5b2160f6fa4b83a3674a210b1cdeb0/content.htm
Regards
Prakhar -
HT4970 How can I share a Task list in Reminders?
How can I share a Task list in Reminders?
First you can share Task List from Mac Reminder app or from icloud.com (Reminders app) (needs to login under your apple id).
Then you should login to icloud.com under apple id of acceptor for accepting inviting of your Task List.
That's all. -
Extend task list for new planning plant
Hi Gurus,
I have 40 task lists for a planning plant 1000. I want to extend them for a new planning plant 2000. Is there any method to do it without usnig BDC or LSMW?
Regards,
VMHello VM,
No it is not possible to simply extend the Task list.
You can copy the same for different planning plant. But if it is not so much necessary, Make other as Maintenance Plant rather than Planning plant.
Regards
Naveen -
TS4118 Can I retrieve to do list from old calendar after upgrading to mountain lion?
Can I retrieve "to do list" from old calendar after upgrading to mountain lion?
Hello MacMystie,
Thank you for using Apple Support Communities.
If you have a recent backup with the old "to do list" you can use the following article will provide information on recovering information from a backup.
Recovering iCloud contacts, calendars, and bookmarks from an iTunes backup of an iOS device - Apple Support
Regards,
Jeff D. -
Common task list for cliant lavel
Dear all,
In my case we have 20 nos of plants in our group . but we want to make one common general task list for all group .
so any body suggest me how can be done .
RaghavHello,
Please refer the thread [General tasklist across all plants.;
Regards,
Rakesh -
Where can I find the song list for the glenn miller gold collection
Looking for help!!
Where can I find the song list for the CD of The Glenn Miller Gold Collection DIGITAL DEJAVU?
[email protected]Thank you for trying but this is the wrong disk. I'm looking for the list on the disk made in Italy by Phonocomp SpA . It has a number on it of 5-105-2 and CEDAR DIGITAL REMASTERING 1992DEJAVU.
I have tried to attach a picture of the disk but it will not paste to this reply.
Herbert Hamlin [email protected] -
Where can you get the power cord for a 2012 airport express?
Where can you get a power cord for a 2012 airport express or the equivalent? I couldn't find one in the online store.
I'm sure the OP found his solution, but I wanted to share mine in case it helps some future seeker.
There are a lot of brand new cords on eBay for less than $10 including shipping, which is way cheaper than the $39 stereo connector kit or an AC adapter from a retailer. I just bought a used-like-new one for $5.50.
The cord is made by Volex, part number APC7Q. The Apple part number is M9573LL/A. If the seller got it from the stereo adapter kit, they'll probably list it under MD836LL/A, which is the kit's part number. I got the best search results on eBay using just the Volex part number.
Best of luck! -
Can you have two detail lists from the basic list at the same time?
Hi
Can you have two detail lists from the basic list at the same time?
If yes how and if no why?
Thanks
VenkatNo ... it is not possible of 2 detail list at one time from the basic list ...
you can increament the SY-LSIND .... But you can not display both the windows at single time ...
it is possible to display 2 Detail list in ALV ...... from one basic list using the Blocked list concept .
Sample Program on BLOCK LISTS
Report zblock_list
* Declarations for BLOCK ALV DISPLAY
*--type pools
TYPE-POOLS:slis.
DATA:x_layout TYPE slis_layout_alv,
t_field TYPE slis_t_fieldcat_alv,
*--field catalog
x_fldcat LIKE LINE OF t_field,
*--to hold all the events
t_events TYPE slis_t_event,
x_events TYPE slis_alv_event,
t_sort TYPE slis_t_sortinfo_alv,
x_sort LIKE LINE OF t_sort ,
*--Print Layout
x_print_layout TYPE slis_print_alv.
*----Macro to add field catalog.
*field "text "length "tech "COL_POS "DATATYPE "DDIC_OUTPUTLEN
DEFINE add_catalog.
clear x_fldcat.
x_fldcat-fieldname = &1.
x_fldcat-seltext_m = &2.
x_fldcat-outputlen = &3.
x_fldcat-tech = &4.
x_fldcat-col_pos = &5.
x_fldcat-no_zero = 'X'.
x_fldcat-ddictxt = 'M'.
x_fldcat-datatype = &6.
x_fldcat-ddic_outputlen = &7.
if &6 = 'N'.
x_fldcat-lzero = 'X'.
endif.
*--build field catalog
append x_fldcat to t_field.
END-OF-DEFINITION.
*----- data declerations.
data: v_repid like sy-repid.
data: begin of itab occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
meins like mara-meins,
end of itab.
data: begin of jtab occurs 0,
matnr like makt-matnr,
maktx like makt-maktx,
end of jtab.
select matnr ernam meins
up to 20 rows
from mara
into table itab.
select matnr maktx
up to 20 rows
from makt
into table jtab.
v_repid = sy-repid.
*DISPLAY alv
* Initialize Block
call function 'REUSE_ALV_BLOCK_LIST_INIT'
exporting
i_callback_program = v_repid.
*Block 1:
*INITIALIZE
refresh t_field. clear t_field.
refresh t_events.
*field "text "length "tech "COL_POS "DATATYPE "DDIC_OUTPUTLEN
add_catalog:
'MATNR' 'Material' '18' '' '1' 'C' '18',
'ERNAM' 'Created By' '12' '' '2' 'C' '12',
'MEINS' 'Unit' '5' '' '3' 'C' '3'.
*--build table for events.
x_events-form = 'TOP_OF_LIST1'.
x_events-name = slis_ev_top_of_list.
append x_events to t_events.
call function 'REUSE_ALV_BLOCK_LIST_APPEND'
exporting
is_layout = x_layout
it_fieldcat = t_field
i_tabname = 'ITAB'
it_events = t_events
it_sort = t_sort
tables
t_outtab = itab
exceptions
program_error = 1
maximum_of_appends_reached = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*--BLOCK 2(SUMMARY REPORT)
*INITIALIZE
refresh t_field. clear t_field.
refresh t_events.
*field "text "length "tech "COL_POS "DATATYPE "DDIC_OUTPUTLEN
add_catalog:
'MATNR' 'Material' '20' '' '1' 'C' '18',
'MAKTX' 'Description' '40' '' '2' 'C' '40'.
*--build table for events.
x_events-form = 'TOP_OF_LIST2'.
x_events-name = slis_ev_top_of_list.
append x_events to t_events.
* Append table block.
call function 'REUSE_ALV_BLOCK_LIST_APPEND'
exporting
is_layout = x_layout
it_fieldcat = t_field
i_tabname = 'JTAB'
it_events = t_events
tables
t_outtab = jtab
exceptions
program_error = 1
maximum_of_appends_reached = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*--CALL FM TO DISPLAY THE BLOCK REPORT.
call function 'REUSE_ALV_BLOCK_LIST_DISPLAY'
* exporting
* is_print = x_print_layout
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
form top_of_list1.
skip 1.
write: 10 'List 1',
/5 '--------------------'.
skip 1.
format reset.
endform.
form top_of_list2.
skip 1.
write: 10 'List 2',
/5 '--------------------'.
skip 1.
format reset.
endform.
reward points if it is usefull ....
Girish -
How can I have the articles listed for all of the asssortments?
How can I have the articles listed for all of the asssortments without any condition? Is there any customization for this?
Can you make some explanation? Is it OK if I choose "02 - Listing without qualification" as listing procedure?
-
Hello dear Creative Cloud Team,
I have a question for the student version for 19.34 euros per month.
It means that subscription "Illustrator, Photosho and more ..." contains.
What does 'many more'? If, for example, Adobe Indesign contain? Can you send me a list of which programs are included exactly in the subscription?
Thanks in advance
Best RegardsExplore Adobe desktop apps | Adobe Creative Cloud
Mylenium -
Can you retrieve Danish movie on Itunes Store and are there Danish texts on all the movie on Itunes Store.
I have the same problem with Excel files on an external drive. The drive is attached to my computer which is on a network and another user accesses the external drive. The problem of "custom access" began after our main server went down. I hope someone can come up with a solution so that I can set the permissions. For now the Excel files are all read only.
Linda
Maybe you are looking for
-
Hi. i sent someone a text on Thursday but they are on holiday at the moment and their phone is switched off. When i normally text them I get a 'delivered' report when they recieve the message. If there phone is switched off, I get a 'pending' report
-
Tied notes not shown correctly in score
The score does not show tied notes correctly. Play the following (C3 is middle C): In 4/4 time, play C2 and hold it for 2 beats (half note). At the same time you play C2, play E2 but hold it for only one beat (quarter note). You will see that the C2
-
Devsuit upgrade error from 10.1.2.0 to 10.1.2.3
hi all, as i upgrade the devsuit from 10.1.2.0 to 10.1.2.3 by universal installer, but the following error is thrown, Please help, many thanks. java.io.IOException: The system cannot find the file specified at oracle.sysman.oii.oiix.OiixJarClass
-
[Lync 2013] Response groups : description size
Hi. I have difficulties to create or modify groups, queues or workflows with no descriptions. In the web interface, I can set whatever I want as a description for these objects, including empty description, but when I try to do the same using the pow
-
To disable 'save' and 'save as' options in the toolbar of adobe reader 10
Hi, I need to disable the 'save' and 'save as' options. Is there any way to do it? If so, please let me know how to do it. Thank you.