How to get items in Inbox of the user through PAPI-WS

Hello world

I need to show all items that a particular user in their Inbox on an external application, something like a list of tasks. How can I get this information using web services PAPI? I am currently references the roles of findParticipant() against instances. getRole(); is there a better way to do this?

Hello

You can use the same for ALBPM version 6.0

Please find the code below

Properties configuration = new Properties ();
configuration.setProperty (ProcessService.DIRECTORY_ID, 'default');
configuration.setProperty (ProcessService.DIRECTORY_PROPERTIES_FILE, "c://bea//albpm6.0//enterprise//conf//directory.xml");
configuration.setProperty (ProcessService.WORKING_FOLDER, "/ tmp" "");
try {}
ProcessService processService = ProcessService.create (setting);
ProcessServiceSession session = processService.createSession ("", "", "");
InstancesView instancesView = (InstancesView) session.getView ("");
{for (InstanceInfo instance: {session.getInstancesByView (instancesView))}
System.out.println ("name of the activity:" + instance.getActivityName ());
}
session. Close();
processService.close ();
} catch (Exception e) {}
System.out.println ("Exception:" + e.getMessage ());
}

Sidonie

Tags: Fusion Middleware

Similar Questions

  • How to get TS::SequenceContextPtr to customize the user interface

    I want the file of the custom, user interface sequence value therefore need to take stock of the TS:equenceContextPtr, anyone know how to get this point.

    Is there a reason that UIMessages are not enough?

    Just off the top of my head, here are a few concerns with the not not using UIMessages:

    1. How the user interface is unknown when the file of the sequence is developed to set the value.  Without an event or some sort of synchronization you can do exactly that.  UIMessages not only to ensure the right information, but they help also with synchronization.

    2. The engine does not know this information, and view of execution manager knows that the information for the current execution it is linked to (which changes throughout the life of a series of tests).  Basically, recall of front end, model, and other factors may spawn short executions briefly related to the Manager view of execution.  So if you take the context of the sequence of the current run is perhaps not the right one.

    3. Writing a user interface will be couple the user interface to your specific sequence file.  At this point, you can use the network variables or global variables or global queues as well.  It might even be better options.

    The situation you describe is exactly why the UIMessages were created.  Maybe you can help me understand why you are set on the use of pointers, you already have?  There might be a better solution for your case if I'm misunderstanding you.

    Thank you

  • How to get an onChange event when the user clicks a button?

    Hello

    I'm new to APEX and have the following problem:

    Implementation:
    There are two text elements, one for the zip code and the other for the city.

    When you change the zip code, the city will be changed accordingly with the data from the database.

    I've implemented an "OnChange" in the zip code for this element.

    Problem: The on change event is executed only if the user leaves the text with a tab element or click on another piece of text.

    When it hits the "next page" button directly the city is not changed.

    Pointers for a solution please.


    Turalf

    Published by: Turalf on May 12, 2010 07:52

    Well, depends on how your button is built but, in any case, Javascript supports the onclick event on the element for each HTML.
    Model based buttons are often created as links using the indicator A, but which prevent you from adding an onclick on her event.
    In this case you must choose if you want to cancel the default action, or you prefer to perform the default action (the doSubmit in general) as well as the onclick event.
    The order of execution is
    1. the onclick event
    2. default action

    If you return false from the associated with onclick the function Manager, the default action will be canceled if you return true, he will be executed.

    Flavio

    ----
    http://oraclequirks.blogspot.com

  • How to get items of the skin class?

    Hi all

    I'm completely stacked to getting the items are defined directly in the skin class. To illustrate:

    I have a component of type SkinnableComponent having in turn, specific skinClass:

    MainApplication.mxml:

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 " ...   >

    < header: ApplicationHeader width = "100%" height = "30" / >

    < / s:Application >

    ApplicationHeader:

    < s:SkinnableComponent... skinClass = "components.header.ApplicationHeaderSkin" >

    < / s:SkinnableComponent >

    And the ApplicationHeaderSkin defines certain elements inside:

    < s:Skin... >

    ...

    < s:HGroup >

    < s:Label id = "label1" color = "white" / >

    < s:Button id = "button" width = "36" height = "100%" / >

    < / s:HGroup >

    < / s:Skin >

    The initial task is to instrument the skinnableComponent of ApplicationHeader to make it accessible for automation tools. For this I need to create a class of delegate with the method getAutomationChildren and getAutomationChildAt. The delegate is built with the obj SkinnableCompoment (ApplicationHeader in my case).

    So the question is: how to get children (or elements in the context of flex 4) defined in a class of skin only reference to the host of this skin component?

    I'd appreciate any hint, any reference to a description of the similar problem.

    Big thanks in advance

    Tim

    Referring to the hostComponent.contentGroup is the same as referring to the

    skin.contentGroup directly. The "contentGroup" is actually created by and there are

    in the skin, but it is accessible to the public through the hostComponent

    has declared a part of skin "contentGroup.

  • How to get back my data for the health and the watch Apps once I've restored my phone?

    How to get back my data for the health and the watch Apps once I've restored my phone?

    From the backup, you're going to be restoration.

    If you back up to iTunes, make sure that it is an encrypted backup.

  • Try to play a movie but I have WMP cannot play the file how to get to play or delete the Xvid codec to play?

    How to get to play or delete the Xvid codec to play? Movies in AVI format, I converted it to WMP, but he won't play again

    No guarantee but maybe you need the XviD Codec.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    XviD Codec
    http://www.xvidmovies.com/codec/

  • How to get distinct records by using the ListAgg OBIEE report function?

    Hi all

    I get a correct result as mentioned below. But I don't see duplicates in my result here, in my example, I get duplicate for the name of the employee 'Pat '. So how to get Distinct values by using the LISTAGG function?

    Data set of sample with the Department and its employees

    Service employee

    ----------      ----------

    Marketing Michael

    Pat of marketing

    Pat of marketing

    Pat of marketing

    Purchase of Den

    Purchase of Alexander

    Purchase of Shelli

    Purchase of Sigal

    Guy of purchase

    Purchase of Karen

    Using the ListAgg function, we can convert it to:

    Employees of the Department

    -----------     -------------------------------------

    Marketing of Pat, Pat, Pat, Michael

    Purchase of Sigal, Shelli, Karen, Guy, Den, Alexander

    I tried a lot of things, but I'm not able to understand how exactly this can be achieved, if anyone has any idea or suggestions please do share, thanks in advance.

    After much research, I found the solution & I want to share what he finds very useful, we can create SQL logic in the Advanced tab, as below and after you click Rescan, and then you will get your desired results.

    SELECT saw_0, Evaluate_Aggr T1.dept ("ListAgg(%1,'' & '') intra group (about 1%)") ("as long as VarChar (1000), T1.emp) saw_1 FROM)

    SELECT 'emp_dept '. "the Department dept,

    'emp_dept '. "' employee ' emp

    IN THE "DOMAIN".

    GROUP BY dept, emp

    ) T1 GROUP FROM T1.dept ORDER BY saw_0

    Also note here that we have good anti-aliasing for columns parent (ex: saw_0, saw_1), another by mistake oracle bi server.

  • How to get Camera Raw to recognize the new Nikon D500 camera raw files?

    How to get Camera Raw to recognize the new Nikon D500 camera raw files?

    Devices supported by Adobe Camera Raw

    The D500 has been supported since camera 9.5 Raw which is only compatible with versions of Photoshop CS6 and Cloud.

    What version of Photoshop are you running?

  • How to get audio to play on the timeline by rubbing through

    How to get audio to play on the timeline during the treatment, the clip is not cut, clip does not display an audio wave, looked through the help did not answer. When the clip is imported without options rise so uncertain where the issue is, any help is greatly appreciated, ty

    There is an option in the Preferences / Audio: audio playback while rubbing.

  • Have on current PC, Win 7 64 bit CS5; How to get *.exe to transfer to the new computer after removal of old

    Have on current PC, Win 7 64 bit CS5; How to get *.exe to transfer to the new computer after removal of old?

    https://helpx.Adobe.com/Creative-Suite/KB/CS5-product-downloads.html

  • How can getting error Code U44M1P7 during the upgrade, I fix?

    How can getting error Code U44M1P7 during the upgrade, I fix?

    Update product that you are trying to install?

    Is it compared to the creative or perpetual clouds?

    Please check following if you have creative clouds.

    http://helpx.Adobe.com/Creative-Suite/KB/error-u44m1p7-installing-updates-CCM.html

  • How to add a second connection of the user with windows 8

    How to add a second connection of the user with windows 8

    Go to the Control Panel, then click on change the Type of account in respect of the accounts of users and parental control.  Beneath the box with user accounts, there should be a link that says add a user account.  Click on that and follow the instructions to set up another user.

  • How prevention JButton to actions generated when the user press down

    How prevention JButton to actions generated when the user hold down the key or the short cut
    The code below to show the question when the user keep pressing Alt O
    We want to stop the JButton to generate multi shares just a share only
    A code example shows the behavior that needs to be prevented. Keep pressing "Alt + O" and you will see that the standard ouptput will print the timestamp
    Note Please, I'm NOT interested in the mouse press which is a solution by adding a threshold (setMultiClickThreshhold (long line) on the JButton as an attribute.

     
    public class TestPanel extends JPanel
    {
    
       private JButton btn;
    
       public TestPanel()
       {
          btn = new JButton("Open");
          this.add(btn);
          registerCommand(new MyAction(), InputEvent.ALT_MASK,
                KeyEvent.VK_O, btn, btn.getText(), 0);
       }
    
       public static void registerCommand(AbstractAction action,
             int mask,
             int shortCommand,
             JComponent component,
             String actionName,
             int mnemonicIndex)
       {
          InputMap inputMap = component.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
          KeyStroke knappKombination = KeyStroke.getKeyStroke(shortCommand, mask);
    
          if ((component instanceof AbstractButton)
                && mnemonicIndex >= 0
                && mnemonicIndex < actionName.length()
                && (shortCommand >= KeyEvent.VK_A && shortCommand <= KeyEvent.VK_Z))
          {
             ((AbstractButton) component).setDisplayedMnemonicIndex(mnemonicIndex);
          }
    
          if (inputMap != null)
          {
             ActionMap actionMap = component.getActionMap();
             inputMap.put(knappKombination, actionName);
             if (actionMap != null)
             {
                actionMap.put(actionName, action);
             }
          }
       }
    
       public static class MyAction extends AbstractAction
       {
    
          /**
           * 
           */
          private static final long serialVersionUID = 1L;
    
          @Override
          public void actionPerformed(ActionEvent e)
          {
             System.out.println(System.currentTimeMillis());
    
          }
    
       }
    
       public static void main(String... args)
       {
          SwingUtilities.invokeLater(new Runnable()
          {
             public void run()
             {
                JFrame frame = new JFrame("Testing");
                JPanel panel = new TestPanel();
                frame.getContentPane().add(panel);
                frame.setPreferredSize(new Dimension(500, 500));
                frame.setMinimumSize(new Dimension(500, 500));
                frame.pack();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
             }
          });
       }
    
    }
    Published by: user12130673 on 13-feb-2013 03:01

    Use getKeyStroke (int keyCode, int modifiers, boolean onKeyRelease) hit with onKeyRelease = true instead?

  • How can I mount types defined by the user of the package?

    I have two types of similar packages (gt_Teste) in two different packages.

    How can I mount types defined by the user of the package?
    (I shouldn't want to made a new statement va_Teste2 pkgl_lu2.gt_teste due to the desire to increase memory allocation)

    ------------------------------------------------------------------------------------------
    -ANONYMOUS BLOCK
    ------------------------------------------------------------------------------------------
    declare
    va_Teste pkgl_lu1.gt_teste;
    va_Teste2 pkgl_lu2.gt_teste;
    Start
    --
    pkgl_lu1.prcl_init (va_Teste);
    pkgl_lu1.prcl_print (va_Teste);

    +/*
    -I don't want to do it because of memory allocation:
    Because me in va_Teste.First... va_Teste.Last loop
    va_Teste2(va_Teste2.Count+1): = va_Teste (i);
    End loop;
    */+

    pkgl_lu2.prcl_print (CAST (va_Teste AS pkgl_lu2.gt_Teste));
    end;
    /

    ------------------------------------------------------------------------------------------
    -PACKAGE PKGL_LU1
    ------------------------------------------------------------------------------------------
    create or replace package pkgl_lu1 is
    type gt_teste is table of index varchar2 (100) by simple_integer;

    procedure prcl_init (pi_teste in out nocopy gt_teste);
    procedure prcl_print (pi_teste gt_teste);
    End;
    /

    create or replace package body is pkgl_lu1
    ---------------------------------------------
    procedure prcl_init (pi_teste in out nocopy gt_teste)
    is
    Start
    pi_teste (pi_teste.count + 1): = 'A ';
    pi_teste (pi_teste.count + 1): = 'B ';.
    pi_teste (pi_teste.count + 1): = 'C ';
    pi_teste (pi_teste.count + 1): = ';
    end;
    ---------------------------------------------
    procedure prcl_print (pi_teste gt_teste)
    is
    Start
    I'm in pi_teste.first... pi_teste. Last loop
    dbms_output.put_line (pi_teste (i));
    End loop;
    end;
    End;
    /

    ------------------------------------------------------------------------------------------
    -PACKAGE PKGL_LU2
    ------------------------------------------------------------------------------------------
    create or replace package pkgl_lu2 is
    type gt_teste is table of index varchar2 (100) by simple_integer;
    va_teste gt_teste;

    -procedure prcl_init (pi_teste in out nocopy gt_teste);
    procedure prcl_print (pi_teste gt_teste);
    End;
    /

    create or replace package body is pkgl_lu2
    procedure prcl_print (pi_teste gt_teste)
    is
    Start
    I'm in pi_teste.first... pi_teste. Last loop
    dbms_output.put_line (pi_teste (i));
    End loop;
    end;
    End;
    /

    I see, well it's unfortunate bloody.

    Ideally you would have a package (utility package or something) with objects like that, that can be shared between the development environment, unless you never have an interface code (each package is entirely distinct from all other packages, and honestly, it's not likely to happen).

    I guess that your only option (I think) If you are concerned with memory usage would be to remove the table while assigning a new.

    For i In va_Teste.First..va_Teste.Last
    Loop
      va_Teste2(va_Teste2.count+1) := va_Teste(i);
      va_Teste.DELETE(i);
    End Loop;
    
  • How to get items of the multi ArrayDataModel element

    Hello

    When I add items to an ArrayDataModel like that

    // Main.qmlvar data = {"name": filename, "path": filepath}theDataModel.append(data);
    

    How can I get items once again? When I fill out a single item of the data model I can use the value() method

    theDataModel.value(i)
    

    This gives the value added to the i - th position. But now I have items at each position in the data model. How can I get each item? When I use again theDataModel.value (i) I get '[object Object]' as output.

    Your output [object Object] is ok as is JSON object. To access name or path you need this

    theDataModel.value(i).name //print name value
    theDataModel.value(i).path //print path value
    

    Use the method of data instead of the value of your

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__arraydatamodel.html#functio...

Maybe you are looking for