get the property of task flow display name of java

Version 12.1.3 jdeveloper

I use this method to get the task flow display name property

public String getTaskFlowDisplayName() {
        MetadataService metadataService = MetadataService.getInstance();
      //Get the task flow binding defined in our pageDef file
        DCTaskFlowBinding taskFlowBinding = getTaskFlowBinding();
      //Get Id of the currently running task flow
        if (taskFlowBinding != null) {
            TaskFlowId taskFlowId = taskFlowBinding.getViewPort().getTaskFlowContext().getTaskFlowId();
          //Get the definition of the currently running task flow by its Id and return its display name
            if (taskFlowId != null) {
                logger.info("task FLow: display name:" + metadataService.getTaskFlowDefinition(taskFlowId).getDisplayName());
                return metadataService.getTaskFlowDefinition(taskFlowId).getDisplayName();
            } else {
                return "?? task flow name ??";
            }
        } else
            return "?? task flow name ??";
    }

This method worked in 12.1.2 version

but now, the getViewPort() method is not available

Any other solution pls? ()

Thank you

Have you tried: taskFlowBinding.getTaskFlowId ()?

Note that DCTaskFlowBinding is an inner class so you should probably not use it.

If there is no better way, you can try using TaskFlow initializer is to remind current taskFlowId (you can retrieve the current workflow task id with: ControllerContext.getInstance () .getCurrentViewPort () .getTaskFlowContext () .getTaskFlowId ())

and TaskFlow finalizer to clean the memory value.

Dario

Tags: Java

Similar Questions

  • [JS CS6] What is someone is able to get the property printableInPdf of the button?

    Hi all

    What is someone is able to get the property printableInPdf of the button?

    I always get the following error message when I try to access it (Grrr! ) :

    The content of this object has multiple values for this graphic attribute.

    Despite the fact, it is present in the script reference

    4.jpg

    He never appears in the data browser

    3.jpg

    Is this a bug or what?

    Kind regards

    Kasyan

    Thanks, Trevor. Your new version is much more elegant.

    This is the same idea but a little different implementation:

    var doc = app.activeDocument,
    buttons = doc.buttons.everyItem().getElements(),
    bt;
    
    for (var p = 0; p < buttons.length; p++) {
        bt = buttons[p];
        $.writeln("Button: " + bt.name + " -- Printable: " + CheckPrintable(bt));
    }
    
    function CheckPrintable(button) {
        var printable,
        as = button.activeStateIndex;
    
        if (as != 0) {
            button.activeStateIndex = 0;
            try {
                printable = button.printableInPdf;
            } catch (err) {
                printable = true;
            }
            button.activeStateIndex = as;
        }
        else {
            try {
                printable = button.printableInPdf;
            } catch (err) {
                printable = true;
            }
        }
    
        return printable;
    }
    

    I used this feature in the new version - 1.3

  • How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    Hi Infogoddess,

    Thank you for using communities Support from Apple! If you try to find the serial number of your iPod touch or another Apple product, you can find information and the steps in the following articles useful:

    iPod: how to find the serial number - Apple Support

    Find the serial number of your Apple - Apple Support product

    See you soon

  • When I try to use a MS fingerprint reader I get the message "no mapping between account names and security IDS was done."

    Original title: fingerprint digital mapping

    When I try to use a MS fingerprint reader I get the message "no mapping between account names and security IDS was done."

    I tried the fix (http://support.microsoft.com/kb/890737?wa=wsignin1.0) without success.

    Any ideas?

    Hello

    Have you tried to reinstall the fingerprint reader, as mentioned in the previous post article?

    If your computer is on a domain, the question you posted would be better suited for the IT Pro TechNet public. I would recommend posting your query in the TechNet Forums to get help:
     
    For more information, see the articles:
     

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Can I use my network wireless at home I don't have a problem, but when I use it at work I get the message window explorer cannot display the webpage

    Please help I can use my network wireless at home I don't have a problem, but when I use it at work I get the message window explorer cannot display the webpage and the worl tour plan has a red cross on it can you help me solve this problem

    Hi susanearle,

    You can try the steps in your previous thread about this problem?

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-networking/have-wireless-connection-can-only-connect-from/12a7163c-A54D-4894-81F7-bd4fb92b2da4

    Please let us know, thanks!

  • Cannot start the managed server - unable to get the property of the transaction log.

    I have a server that is managed in a cluster to a single member. The field is simple - server admin and a cluster, the cluster member.

    I can boot is no longer this server. When I try to start, he left after the following message:

    < BEA-000362 > < server failed. Reason: Failed to get the property of the transaction log. Make sure that the migratable Transaction Recovery Service is migrated on the current server before restarting.

    I've checked everything I can think or offers documentation of the error. There is only one target migratable in the field, the managed server. automatic migration is not enabled. I deleted the store by default from the file system, and it gets recreated at startup (so not a problem of permission of system files). I have Activate Server registration to any Transaction scope weblogic debug debugging tab, no additional messages are coming around this message.

    Target only shows migratable are hosted on the managed server and not the last migration status.

    So I'm puzzled. Can anyone suggest what I should look at?

    WebLogic 10.3.5, JDK 1.6.0_29 (64-bit), RHEL 5.6

    Published by: SteveElkind on August 28, 2012 11:54

    Hi Steve,.

    Then remove the cluster migratable option, it will sort your problem.

    Kind regards
    Kal

  • get the node of SQL query file name

    Hi all
    I have a concurrent request that requires the name of file as input. For example, when I connect to oracle on our test instance, I use http://moon1.oando-plc.com:8000. For this program at the same time, the node file name appears as moon1.oando - plc.com.
    I need to use this argument to a PL/SQL procedure, that I write and I don't want to use any hard coding.
    Is it possible to get this data into an SQL statement.

    Thank you

    Hello

    You can get table ICX_PARAMETERS (HOME_URL column). Orsearch profile options values for 'http' get the login page URL (or server name) - see (Note: 201945.1 - How E-Business Suite profile Option values list for all levels using SQLPlus).

    Kind regards
    Hussein

  • How to get the property of the object by it's string name

    Hi all!

    There is a function that receiver of the string value = "propertyName", which is the name of the property.

    and I have an element object with the name property is equal to "propertyName".

    How can I get to the element ofvalue of this property?

    I know that

    ObjectUtil.getClassInfo (element) .properties

    Returns an array of the properties of the element, but it's an easier way to do instead to search the table ditch?

    Thank you, Alex.

    the mounting of the parent of the object:

    var yourObject:DisplayObject = getChildByName ("propertyName");

  • get the IOPS / s and flow rate for each card of vmhba

    Hi, I have seen a few difficulties for the IOPS / s and flow stat for esxi for each vmhba card get the average, max, min

    I can get some network like net.usage.average, net.received.average and net.transmitted.average parameters as the metric is consolidated for all the network card.

    Here is the part of the classic script I use

    $metrics = "net.received.average", "net.transmitted.average".

    Get-Stat - entity $esx - start $start - finishing $stop - MaxSamples 10000 - Intervalmin 30 - stat $metrics |

    Group-object - property {$_.} @entity.name} | %{

    $esxname = $_. Group [0]. @entity.name

    $hard = (get-VMhost-name $esxname) .extensiondata. Summary.Hardware

    $netreceived = $_. Group | where {$_.} MetricId - eq "net.received.average" - and $_. {Instance - eq ""} | Measure-object-property value - average - Maximum - Minimum

    $nettransmit = $_. Group | where {$_.} MetricId - eq "net.transmitted.average" - and $_. {Instance - eq ""} | Measure-object-property value - average - Maximum - Minimum

    and so now, but on the storage card, consolidated metrics do not exist...

    Thank you very much!

    Try something like this

    $esx = Get-VMHost MyEsx$stat = "storageAdapter.numberReadAveraged.average","storageAdapter.numberWriteAveraged.average"$start = (Get-Date).AddMinutes(-5)
    
    Get-Stat -Entity $esx -Stat $stat -Start $start |Group-Object -Property Instance,Timestamp | %{$_ |Select @{N="Timestamp";E={$_.Values[1]}},@{N="Instance";E={$_.Values[0]}},@{N="Read IOPS";E={$_.Group | where {$_.MetricId -eq "storageAdapter.numberReadAveraged.average"} | %{$_.Value/$_.IntervalSecs}}},@{N="Write IOPS";E={$_.Group | where {$_.MetricId -eq "storageAdapter.numberWriteAveraged.average"} | %{$_.Value/$_.IntervalSecs}}}}
    

    It uses more or less the same concept that I used in my post to get the OPS are / s maximum .

  • Why do I get the HP CUE scanning flow component has the work stoppage?

    Why do I get the HP CUE has stopped working message scanning flow component when I try to use the scan?  HP PSC 1610 ALL-IN-ONE printer-scanner-copier

    Hi smith6806,

    Try the procedure described below and then let me know if you are able to scan from Microsoft Paint or Windows Fax and Scan?

    Let me know what you find on your laptop?

    Follow the steps below to check the WIA Service:
    1. type services.msc in run or search and files program
    2. scroll the page up to the WIA Windows Image Acquisition
    3. make sure that the service is running. Click on stop and then restart to ensure
    4 restart the computer

    Restart the services of dependencies:
    1. Click Start, in the search box type "services" without the quotes.
    2. scroll down until you see Windows Image Acquisition (WIA).
    3. double click on it and go to the Dependencies tab.
    4-2 services must be listed.
    5. close this window and look for the remote procedure call (RPC).
    6. make sure it's on manual or if it is enabled automatically, just leave it. Make sure the service is started.
    7. go to hardware detection kernel and Double click.
    8. set the Startup Type to manual and click on apply.
    9. you should be able to start the service by pressing Start.
    10 now, you are done and the Twain Manager must work and gives you is not a mistake. This should solve your problem

  • When Remove My Documents & send to the trash and get the error message from file (s) name (s) too long

    the situation: I erase all the contents of Documents and sending them to the Recycle Bin.  This is in preparation for a new backup of Documents to an external hard drive device.
    What continues to be: whenever I press DELETE I get the following error message, "file contains elements whose names are too long for the Recycle Bin." -I combed through all the names in the Documents & shortened all the time, but I always get this error message.
    questions: How can I identify & locate offend him, too long file name of the file or files?  What is the space limit for the length of the file/folder names + character?  is it possible to change the settings to correct this extremely frustrating loop somehow, I'm in?
    I would greatly appreciate any help/tips on the issue.  Thank you!

    Hello

    you keep insisting on 'my

    There is no "My Documents" on Vista

    It's only 'Documents '.

    Windows Vista renames 'My Documents' as, simply, 'Documents '. "My music", "My pictures" and "My videos" have also lost their prefix and moved to directly under the directory (profile).

  • How can I get the Chinese/Japanese characters to display correctly instead of squares?

    I use Windows 7 x 64 Ultimate and I have a few songs in Chinese and Japanese.  In Windows Explorer, the characters would SOMETIMES show properly and sometimes they would be blocks.  Whenever I use iTunes, they are always in blocks and in other programs (e.g. synctoy 2.1 and google chrome). I already installed the Chinese (traditional and simplified) and Japanese language packs, but file names always appear in the blocks. Also, I rebooted several times after the installation of the language to see if that fixes things, but he didn't. Any help would be appreciated. Thank you

    End well... I stopped being lazy and found the solution by trial and error. So the trick is to change the regional settings (RPC) Chinese system and then restored the settings English (United States) system locale. I can now see Simplified Chinese characters correctly in my buddyllist as well as in securities of browser. I've attached a screenshot of the menus to get the settings system locale. Basically, go where you changed your input method and follow the screenshot below:

    This is a bug with the EMI, according to me, but nothing will not solve some changes and reboots! Good luck!
  • Get the Guest OS family and full name of PowerCLI VM Tools not installed OS?

    OK, been looking for this one, but need help...  If a virtual computer is turned off, or do not have installed VMware tools you can not get the OS or OS full name family?  Who can simply not be right... it's in the VMX file, in the UI Client VI, PowerCLI must so be able to get some how, right?  Someone has tackled this one!  Right?

    Partly right.

    The operating system that you see in the VIC or the VMX is what the creator of the host defined during the creation.

    It corresponds with the parameter - ID on the New - VM cmdlet.

    For more information on this ID, see errors during the GuestIDs of New - VM specification .

    The problem is that the creator of the prompt can define what he wants here, it does not match with the actual OS installed on the client!

    You can get this entry like this

    (Get-VM  | Get-View).summary.config.guestFullName
    
  • How to get the jar file without knowing his name and any class on the inside?

    Hello, everyone!

    I would like to know if there is a way to get a reference programmatically in the original container without knowing his name and any class it contains. I mean by "initial pot" the pot that was called in the prompt, like this:
    java -jar jarfile.jar
    or in another way, in a graphics system. To be honest, what I really want is to get a reference to the manifest of the jar, but I know that if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also be useful. So, is there a way to do this?

    Thank you.

    Marcos

    Ah, so you want to find the calling class and get its source code.

    I managed to get the class calling on occasion, but this is probably a somewhat fragile solution. You must extend SecurityManager because getClassContext() is a protected method.

        private static class CallerFetch extends SecurityManager {
    
            public Class getCallerClass() {
                return getClassContext()[3];
            }
        }
        private static CallerFetch callerFetch =
                new CallerFetch();
    
        /**
         * Find the class of the code which called the
         * method that invokes this method.
         * @return The class of the caller's caller
         */
        public static Class getCallerClass() {
            return callerFetch.getCallerClass();
        }
    
  • How to get the property of the image on the width and height?

    Hi, all, I import image from the outside with the following method, but how to get the w3c_main.png on the width and height property? I will appreciate for your answer.

    var mcLoader = new MovieClipLoader()
    mcLoader.loadClip (" http://www.w3.org/Icons/w3c_main.png", image);

    or an image. LoadMovie (" http://www.w3.org/Icons/w3c_main.png")

    in the first case use the method onLoadInit() to a listener for your mcl before trying to access your target movieclip laborious and _height properties.

    in the second, use the preloader code to ensure your png loading is completed before attempting to access the _width and _height of your target movieclip properties image.

Maybe you are looking for

  • iPad 2 vs iPad pro photo ability

    Hello everyone I have an old iPad 2 with photos synced from my PC, 5000 photos and movies, the total capacity is 29 GB for photos only. Yesterday I bought an iPad 9.7 pro and synchronize the same files to iTunes, and now the capacity is 40 GB for pho

  • motor continuous: what are the step to build a controller

    Hello I hava a motor continuous with sensor position and data acquisition I want to control '' position' ' of this method of dc motor using state space in labview can someone give me the step what can I do to implement this controller? I wheel a lot

  • Which camera would be best

    Need help to choose a camera and objectives. Need good digital photos of the paintings and landscapes.  Want a camera with the option of different objectives.  Studs high pixel content and good battery life of the. Advice would be appreciated. Price

  • My firewall windows itself turns off

    original title: firewall Turns off my firewall windows itself. I keep having to check that its on again?

  • Wireless keyboard volume keys

    Volume +/-and mute keys on my wireless multimedia keyboard stopped working since I installed Avira AntiVirus. Technology of the computer that has installed it said to reinstall the keyboard software or download from Microsoft. I downloaded it, but th