How to read instance information

I write my code of studio and then deploying it in the engine.

Can someone paste me code that I can use in the studio for information on bodies that have been created under any role.

I saw a few APIs, but they need the instance id. Not sure how I can get the instance id

Please advice.

Hello

Sorry, I wasn't clear on what it means to you by is:

.. get information on instances that have been created under any role

Here are some examples to get a list of instances, but displays no information on the role. I don't know what kind of information you're looking for the role.

This first example is logic that assumes that you want to watch some instances based on a search filter. In this example, the filter is based on the type of customer they are for example ("Gold", "Platinum", "Silver"). It returns only cases currently in process (the logic of SearchScope below being set to "StatusScope.ONLY_INPROCESS" in the logic below). The incoming variable only she needs is the variable "customerType" which has already been set to a value. Note that this example uses the Fuego.Papi.ClientBusinessProcess object. This logic creates a search filter and returns only cases that meet certain criteria (for example a job active element instances that have the customer type 'Or'):

cbp as ClientBusinessProcess = ClientBusinessProcess()

connectTo(cbp, processId : "/NameOfYourProcessHere")

instF as InstanceFilter = InstanceFilter()

create(instF, processService : cbp.processService, viewId : "TypeSearch")

instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS)

logMessage "Customer Type is: " + customerType  using severity = DEBUG

// the variable "customerType" is a String variable set to "Gold", "Silver", "Platinum" in the process
addAttributeTo(instF, variable : "customerType", comparator : IS, value : customerType)

for each inst in getInstancesByFilter(cbp, filter : instF) do
   // get the value of the order's amount for the instance
    instanceVarValue as Object = getVar(inst, var : "orderAmount")

    logMessage "amount is: " + Decimal(instanceVarValue)  using severity = DEBUG
end

Here is a second example which I suppose is perhaps closer to what you are looking for. Once again, this has nothing to do with the roles that you said you were interested, but does not return the list of work item instances that are in their special properties. Also note that it uses a different technique to connect - the Fuego.Papi.BusinessProcess object. This logic assumes that you have already created a participant ('auto') that has been assigned a role in the process. It also assumes that you run this by a method inside the process - this is the reason why the predefined variable "process.name" works here. If you use it, be sure to use the id of the activity and not the name. Id is what see you when you right mouse click on an activity in a process-> 'Properties' and look read only field "activity Id". Do not use the name field which usually has white space in it for this logic.

bp as BusinessProcess
targetActivity as String

connectTo bp
    using url = Fuego.Server.directoryURL,
          user = "auto",
          password = "auto",
          process = "/" + process.name

logMessage "Connected to: " + process.name using severity = DEBUG

// get the list of instances in a specific activity
for each instance in getInstancesByActivity(bp, activity : "QueueWaitingForDistribution") do

    logMessage "found an instance with the value: " + String(getVar(instance, var : "someVariableNameHere")) using severity = DEBUG

end

Tags: Fusion Middleware

Similar Questions

  • How to read contact information under Windows XP?

    I want to develop a LabVIEW application that will show the coordinates of the contact, in Windows XP.

    For example, the screen is 1920 x 1200 and the touch screen is an integral part of the screen. When I move my finger across the screen, I should be able to connect the coordinates, for example. If I put my finger on the top left corner of the screen, LabVIEW vi must connect (0, 0) and (1920, 1200) if I touch the bottom right. And of course things get a little complicated when it comes to specify the sampling time.

    How in LabVIEW?

    Try this

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How to read the WebGate Agent user information after connected?

    Hi all

    I'm new to IOM and here's what they have so far

    1. the installer OUD with OAM

    2. setting up OSH/Wegate connection to OAM for SSO

    3. Configuring Weblogic server frontended by a setting of OSH in #2 and I am able to connect to the application by using OAM SSO.  However, I still have questions, read the information of the user (such as user id, name, email) after connected since

    WebGate and couldn't find the instructions so far.  Can you please give me some information on how to do this?

    Thank you

    Binh.

    Please mark discussions as replied if the response has answered your question.

  • Hey how to read mi whatsapp messeges on mi iwatch?

    Hey how to read mid messegges on mi iwatch whatsapp?

    Hello

    Your Apple Watch can be configured to replicate notification of WhatsApp Messenger from your iPhone alerts:

    -On your iPhone, in the application of Eve, go to: My Watch (tab) > Notifications > go to the list of applications > turn on the button next to WhatsApp Messenger.

    However, WhatsApp WhatsApp Messenger Messenger doesn't offer not currently support Apple Watch, is not currently possible to reply to messages on Apple Watch WhatsApp.

    When the developer adds support for Apple Watch, description of the application in the iTunes Store / App Store will be changed to include the wording: «Offer Apple Watch App for iPhone»

    You can contact the developer to suggest they add this feature:

    https://www.WhatsApp.com/contact/

    More information:

    https://iTunes.Apple.com/GB/app/WhatsApp-Messenger/id310633997?Mt=8

  • Satellite A30: Canoe start Recovery CD - cannot read disc information

    My a30 is about six years old.
    About two years ago, I used the recovery disks to format and reinstall windows xp
    I'm trying to do the same thing again now, but a window appears saying "can't read disc information.
    What could have happened to cause the a30 not to recnognise the disc? (he continues to recognize other discs)
    hope someone can help me
    Carl

    Wait. window saying "can't read disc information! ???
    How have you tried to use the recovery CD? Have you tried to start the recovery of the Windows operating system?

    Sorry, but something like this is not possible! You have to BOOT UP from the recovery CD to install the new OS!
    But beware, the recovery will format and remove the data from the HARD disk.

  • How to read the status of User1 DIP-switch with a cRIO FPGA chassis?

    How to read the State of the DIP switches on a FPGA cRio chassis?

    I work with a cRIO 9022... My idea is to put the system in "service" mode with USER1 switch to IT and communicate with the FPGA via the FPGA - GUI (VI) on the host computer instead via the RT module that is used in normal conditions.

    Any ideas? Unfortunately, I don't have an unused channel on the left... .and (as I know) cannot use the interface RS232 of FPGA.

    Many thanks in advance,

    Luke

    Hi, this is the correct information. You cannot read the FPGA of DIP-switch status. The only thing you could do is to use the function of Reading Switch.vi located under the range of functions-> real-> utilities RT time

    It's how you probably know side host RT and not the FPGA.

    Cordially Virginia

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

  • How to read continuously from the rs232?

    Hello

    I'm new to LabVIEW and my questions would be obvious for some for you. So please help if you know the solution.

    It's for my school project. For your information, we need to schedule a Committee of Altera DE2 to control traffic lights (something like that) and at the same time, the Commission shall forward the States of enlightenment to a computer with LabVIEW installed via an RS-232 cable.

    The rest of the project was fine except for the part of LabVIEW, because as I said earlier, I'm new to LabVIEW.

    We use the "basic series write and Read.vi" in the folder examples of NEITHER. The problem is that we do not know how to change the vi in order to receive the data that come the DE2 Board permanently. Each time, the vi stops reading after receiving 24 bytes of data.

    So, the first question is:
    1.) how to read continuously from the RS-232 port? (We tried to use while "loop" but without success, maybe we were doing it the wrong way.) If you know the solution, please enlighten us for us in a detailed manner.

    (2) Secondly, once we have received the 'chain', how can convert us to bits (0 and 1) so that we might be able to manipulate the bits, for example turn on the LEDs that correspond to the bits.

    Thank you.

    Instead of reading the bytes of the port so to read that many bytes (which may be zero), just do a VISA read for 1 byte.  He will wait for this next byte.

    To get an array of Boolean out of this byte, use this code.  He turns the characters into a byte array.  Takes the first and the only element of this array, and then converts this single U8 number into an array of bytes.

    Which country are you?  I've never seen or heard lights orange before.  Only the yellow lights.

  • How to read the larger than messages of 8 bytes from a NMEA 2000 using XNET bus?

    I currently read data from the GPS19x NMEA 2000 Garmin with CAN connection using a NI 9862 in 9178 NI cDAQ chassis.  I have the dbc file and have generated a session with some messages of interest groups.  However, only with not more than 8 bytes (DLC) message groups are visible in the session configuration wizard.   Other messages of interest have the DLC set to a number greater than 8, interest is set to 51.  Reading some information on NI.com, LabView does not support the CAN message to groups of more than 8 bytes.  Closer information says that messages must be broken into small groups.

    Does anyone know how to break messages into small groups or someone has code, they are willing to share where this constraint is resolved?

    Thank you

    First byte in each subsequent frame is a counter of views, as well as 7 bytes in each subsequent frame used to transfer data.

    An am exactly the extent to understand the functioning of Fast-package.

    Here's an example of some high level protocol data, which placed in NMEA2000 message (PGN130820) and message transferred in 4 NMEA MAY frames with the help of packages quick.

    0 17 A3 99 04 80 05 02 E

    E1 00 01 00 00 00 07 00
    E2 00 00 84 00 00 D0 5th
    E3 12 00 00 FF FF FF FF

    What we have here?

    E0... E3 -identifiers of package, where E is a sequence identifier (note1: this is the same in all frames of the sequence) and 0.3 are identifiers of frames in the sequence of Fast Packet.

    17 represent the amount of data to send.

    Note2: the busy sequence 3-byte identifier (mask: data [0] & 0xE0), and the number of sequence point busy 5 bytes (hide the data [0] & 0x1F).

    So finally we have our 223 bytes as the maximum data length to send via Fast Packet: 1F * 7 = 217 bytes + 6 bytes (first image) = 223.

    Bytes of end filled with FF - I know not yet, if it is the requirement of fast-packet or functionality of library CAN only 3rd party.

    It will be useful.

  • Use: How to read a single line of names of channel or units?

    Most of the examples of programming to use use channel names in separate lines, as in the following example:

    Channel
    Name: time
    Type: time

    Channel
    Name: XShift
    Type: R64

    Channel
    Name: YShift
    Type: R64

    Most of my data sets have channel names and / or units in one line separated by tabs as

    "Dehnung" "Standardkraft" "Sensor" "Zyklusnummer" "PWM".

    « mm » "N" "V" « » « % »

    Is there a more effective way to add channels appointed and equipped with units along these lines to bike through some index variable? Like my channel number, etc. naming vary frequently, I would be looking for a more flexible solution, avoiding fixed table or names hardcoded sizes.

    I guess

    aMyChannelNames = split (File.GetNextStringValue (eString), vbTab)

    aMyChannelUnits = split (File.GetNextStringValue (eString), vbTab)

    for i = 0 to UBound (aMyChannelNames)

    Adjust the strings = Block.Channels.Add (aMyChannelNames (i), eString)

    Channel.Porperties ("Unit") = aMyChannelUnits (i)

    next

    could do the job - but it's the most effective way?

    Thank you for helping.

    Michael

    Hello Michael,

    I don't see the real problem.

    You read the header and split it into an array. This is information you have how many channels. Table size ubound depends on the line you have red and is not fix. Everything should be good now.

    You read the information and would divide the tables. Then, you use a loop to generate channels and set the properties. I don't think that there is a better way to do it.

    Kind regards

    Philipp K.

    AE | OR Germany

  • How to read the host name or serial number cRIO locally

    I have not worked with cRIO and decided to ask for help.  (o).

    I don't know about the screws that allow to access this information from a connected Windows machine, however, I want to retrieve and display this information on remote panels.  But I cannot determine how to read the cRIO hostname or the serial number of the software running on the cRIO?

    Thanks for the help.

    James

    This could help.

  • How to read the tag bluetooth data in labview 2015 running on Windows 10

    Hi all

    I have a Development Board Nordic semiconductor nr51. This card is programmed as a tag bluetooth which simply announces his address with 16 bits of data appended to the end.

    My laptop came with loan materials smart bluetooth. I installed an app interactor lighthouse to bluetooth on my laptop and the software is able to detect the tag as if shown on the image below.

    I wanted to write a LabVIEW program that will simply be careful bluetooth headlights and notify me in my computer every time a lighthouse with the specified address is detected. This mobile application below is provided by the manufactuerer of the Board of Directors and I wanted to develop a LabVIEW program something similar to what will read the given data and extract values.

    Somehow, all the sample applications provided data only shows how to read and write in a connected bletooth device but not analysis for tags. I also tried using the Bluetooth ' discover ' and it does not detect the bluetooth beacons.

    Could someone provide me with the necessary information or example program for detecting / reading of tags bluetooth in LabVIEW 2015 running on Windows 10?

    Do I need to install a third-party software to read data from bluetooth?

    Bluetooth in LabVIEW function nodes using the Winsock interface to access bluetooth resources. This works very well for Bluetooth 2.0 devices but not Bluetooth 4.0 devices WHEAT aka. Microsoft has created a completely different interface for these resources API as the model of overall service for WHEAT devices has radically changed.

    The API to use WHEAT devices is the API of the GATT (generic attribute profile) in Windows. There is supposedly a .net interface available that you can try to use (Windows.Devices.Bluetooth.GenericAttributeProfile). The WinAPI to lower level (https://msdn.microsoft.com/en-us/library/windows/hardware/hh450825(v=vs.85).aspx) is a C DLL API and does not lend at all to be called directly by the LabVIEW call library node, since some of the parameters of the function are quite complicated and you need to also access the SetupDI APIs to enumerate resources WHEAT and even harder to function parameters. In order to access this low-level API to write an intermediate DLL which results in low level API C a more acceptable API for LabVIEW.

    Another possible problem is that Windows don't at least in Windows 8 not allows devices to pair per program. Microsoft wanted to force developers in the use of the "inbox" experience, which means that all users must go through Microsoft provided service pairing, instead of each request for implementation of his own matching technique.

  • How to read the Landel Messages on a Microsoft XP computor?

    Another question: how to read:

    http://www.att.com/econtactus/SharedSegments/livePerson, jsp? skill = all contactus9 #list

    And another:

    (Name removed) with the same information?

    I'm not sure you can.  I suggest that you inquire about their site...

    http://www.Landel.com/mbaboutemail.html

    .. like it need or use a computer to work.

  • How to read the report of the unit for HP Deskjet 1510

    Hi HP.

    I see the software provided with this printer, it has this option to print the reports of the unit.

    Please help on how to read this report because it consist of unknown coding and other things.

    I would be grateful if your side can help me on this coz I guess we can follow our consumption through this report.

    If this isn't the goal, maybe you can suggest another way to get understandable use of reports?

    Kind regards

    Nadiya

    Hello Nadiya,

    Welcome to the forums

    I understand that you are looking for a usage report. The printer prints a test page and you can see the number of pages on this page, as well as information about the printer, such as serial number, etc.. If there is anything else that can say 'use' it please let me know and I'll do my best to help.

    Click on this link: streaks of ink, fixing faded prints and other common print quality problems

    In the guide, look under "Solution 6: print and evaluate a page of test and troubleshooting of faults" and print a test page.

    Take care

Maybe you are looking for

  • Context menu of the site overrides Firefox, so there is no orthographic integrated

    When I right click in a text area, menu contextual of the client program can't, Firefox, so I can't use spell checker integrated in Firefox, such as the suggested corrections options and "add to Dictionary". Which is frustrating, because the spell ch

  • are not allowed to open image files

    Opening of the transferred images of the iPad with Dropbox.  Error, says I don't have permission to open and go to file info - here it says I have permission. Also happened with a duplicate image of the existing file.  The original file opens, but th

  • How to connect to MK3006GAL libretto SS1000?

    In case you don't know, this Japanese model only comes with unique HDD 2.5 6.35 mm high. I now want to replace it with a faster, say MK3006GAL. But it does not come with 44-pin standard IDE connector (MCD - D50 series connectors DDK is mentioned in t

  • Yahoo Search took over my browser, how can I get rid of it?

    Firefox updated itself, obviously with the version with Yahoo Search. I think that Yahoo Search is less than my good old favorite and have not been able to get rid of the Yahoo search... Search all engines have been eliminated except for my old favor

  • Variant to the forestay to enter VI

    Hello fellow developers,. I would like to ask if anyone knows how to connect a Variant such as terminal connector for my Subvi? I can't find a control of type variant at the moment. I used the variant data and unflatten chain and no Refnum for my Sub