Instance Search by Filter

how would i go ahead finding an instanceId using filter condition in PBL. my filter condition is a String dataType
this is what I do . I just want to know do i have to connect explicitly to the engine database even when using PBL. I saw that i have to use ProcessService.ConnecTo but i required clear password. and I can't do that from the code.any suggestions
processService as Fuego.Papi.ProcessService
instanceFilter as Fuego.Papi.InstanceFilter
instanceValues as Fuego.Papi.Instance[]
create instanceFilter
using processService = processService
instanceFilter.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
addAttributeTo instanceFilter
using variable = String,
comparator = Fuego.Papi.Comparison.IS,
value = String
instanceValues = getInstancesByFilter(Fuego.ProcessService, filter : instanceFilter)

Create ADMIN_USER, ADMIN_PASSWORD as business parameters in your organization.
assign userid and password to these parameters.
Fuego.Papi.ProcessService processService;
String usr = (String)BusinessParameter.getValue(name : "ADMIN_USER") ;
String pwd = (String)BusinessParameter.getValue(name : "ADMIN_PASSWORD") ;
processService.connectTo(url : Fuego.Server.directoryURL, user : usr, password : pwd);
and use
instances = processService.getInstancesByFilter(filter : instFilter); to get the instances from the engine.
Regards,
Satyamite.

Similar Messages

  • Regarding Instance Filter for instance search

    Hi,
    We are facing one problem during instance search through InstanceFilter code. We have written the following code to find the instance-
    Fuego.Papi.InstanceFilter instFilter;
    instFilter.create(processService : ProcessService);
    instFilter.addAttributeTo(variable : "String", comparator : Comparison.IS,value : String);
    instancesValues = ProcessService.getInstancesByFilter(filter : instFilter);
    We are able to find the instances through this code if the instances are at any Interactive activity but unable to find the instances if they are lying in MessageWait activity. The instanceValues length in this case always comes as "0" but if the instances are at any Interactive activity, we are getting the instanceValues length as required.
    Please suggest some way to find the instances which are at MessageWait activity.
    Thanks in advance,
    Abhishek

    Hi,
    Define the SearchScope for the filter right after you create it - as below:
    Fuego.Papi.InstanceFilter instFilter;
    instFilter.create(processService : ProcessService);
    instFilter.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    instFilter.addAttributeTo(variable : "String", comparator : Comparison.IS,value : String);
    instancesValues = ProcessService.getInstancesByFilter(filter : instFilter);
    Having ParticipantScope as "ALL", enables the filter to return all the instances irrespective of the activity type (interactive or automatic)...
    -Thanks,
    Malar.

  • How can I search or filter to see only videos?

    I've returned from an extended trip and have downloaded all of my media into Aperture and iPhoto by extension.
    Is there a way in which I can search or filter to locate all my videos so I can move them to a single location (other than looking for an icon on each image)?
    Thanks.

    Create a smart album (File > New > Smart Album) and in the smart settings panel click "Add rule"
    Add a rule "File type is: video"
    Or click the looking glass in the searchfield in the Browser and add a rule "File type is: video" there.

  • Instance Search Using Ajax

    Hi,
    I am using Apex 3.2 I recent saw ajax instance search using ajax done by karthic patel which is very nice URL link : http://apex.oracle.com/pls/apex/f?p=9904351712:8:0::NO:RP::
    I did the same in apex 4 it's working fine for me now. My requirement is how to incorporate this apex 3.2 Please suggestion how to change the dynamic action which is there is apex4 not in apex3
    Please Suggest
    Thanks
    Sudhir

    Its a rather involved subject. So better do some reading on your own and try out something simpler before you jump into the deep end with IR.
    Here are the original posts from one of the authors of JS API of APEX. (He still lives in Apex $x, $s ,etc.)
    http://carlback.blogspot.in/2008/03/new-stuff-1.html
    http://carlback.blogspot.in/2008/03/new-stuff-2-x01-and-friends.html
    http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=33&ved=0CFUQFjACOB4&url=http%3A%2F%2Fwphilltech.com%2Fwp-content%2Fuploads%2F2011%2F06%2FSt.Hilaire-AJAX-in-APEX-ODTUG-June-2011.pptx&ei=mrSrT8z3Eaqg2gXOg5mmAg&usg=AFQjCNGMnzT_nvDaz6E3P7L7PS6P-NNxJA
    Regards,

  • Use wildcard in LDAP search with filter and filter args fails

    Hi,
    I'm writing a function that receives the search filter and the filter arguments and returns the attributes of the found entries but I'm having problems when I pass the wildcard '*' as argument. For example I'm looking for cn=* but instead it looks for cn=\2a (searches for cn containing *).
    I'm using the InitialLdapContext function:
    public NamingEnumeration<SearchResult> search(String name,
    String filterExpr,
    Object[] filterArgs,
    SearchControls cons)
    throws NamingException
    The problem occurs in the class com.sun.jndi.toolkit.dir.SearchFilter format method where it replaces the filter place holders with the filter arguments. There it calls getEncodedStringRep to the arguments and that function returns the wildcard '*' escaped.
    Is it supposed to behave like that? I don't have problems using the search function search(String name, String filterExpr,Object[] filterArgs, SearchControls cons) but I'd like to be able to separate the filter and the filter arguments.

    That's a forum artefact, as the boldface should make obvious.
    My point is that you should specify the wildcard in the filter string, not as an argument. See http://download.oracle.com/javase/6/docs/api/javax/naming/directory/DirContext.html#search(javax.naming.Name,%20java.lang.String, java.lang.Object[],%20javax.naming.directory.SearchControls). (The forum will break that link too.) The argument asterisk is being escaped in accordance with what it says there. Or maybe you can escape it yourself as an argument as \0x2a.

  • Search Results - Filter Results By: - Show More ...

    When I use the "Show More ..." option under one of the "Filter Results By:" groups, it works as expected. When I then select one of the items to filter by, it again works as expected. However, if I hit the back browser function or select the "Unfilter" option, the "Show more ..." expansion is restored. I suggest it return to the "Show Top 5..." presentation (as before the individual filter was selected).

    Hi Sid,
    You are right, I thought about this BADI we already enhanced it for BP authorization (like many people did in this forum). However my concern is that this BADI gets called like a million times before it gets back to the search result page and I am just not sure of the impact on performance. So I was thinking if anything else is possible at UI level. But may be I don't have many options here :(.  Also if I select the multiple values for the field in the BADI it comes up in debug mode
    MARKETINATTR   I EQ  "VALUE1"
    MARKETINATTR   I EQ  "VALUE2"
    it is searching for both individually, so it is basically working as a select option, not sure how I can combine them both.
    Also you mentioned that searching BP on marketing attr is not possible in standard, but I think it is possible and we are searching on it. I know we have enhanced BP search for some other purposes but not for marketing Attr. as I can clearly see a standard field for MARKETINATTR  in the  context of  BPMAINSEARCH IMPL class and when I use it in the search field it does pop up another view when I hit f4 on the possible values where I can select my attr set, attribute & value. I am on 7.0 by the way.
    Thanks,
    Kumar

  • Adobe Reader X problem - no search contents filter

    Hi!
    I cannot search contents of a .pdf using windows, as I could in adobe reader 9. I have found out that adobe reader x doesn't have a filter (to enable search contents)!
    was it this how it supposed to be?

    Adobe has really left us up the creek without a paddle here.  They stopped posting separate IFilter installers on their download page when they started bundling it in with Reader (except for the 64-bit version of IFilter 9), and the installer for Reader X not only doesn't include the IFilter, but it actually removes whatever IFilter you've got installed.  So, you can't, for example, install Reader 9.4 to get the IFilter from it, and then install Reader X over top of it to have a more modern/secure version of Reader, because your IFilter will disappear.  You are stuck choosing between Reader 9.4 with a somewhat modern IFilter and probably poor security, or Reader X with no IFilter (or the last IFilter to have its own installer, version 6.0, which is 6 years old).
    Dear Adobe, this is a real mess that needs to be fixed.  How many people out there have no idea that their PDF files are no longer searchable because Reader X removed their IFilter?  At least create an installer for IFilter v9.4 so people can use a modern IFilter in combination with Reader X, instead of being forced to use Reader 9.4.  There are a lot of posts in this forum about the missing IFilter, and I don't see a single reply from Adobe.

  • Unable to use BPEL instance search form in BPEL Console

    Hi,
    I have a few instances whose titles are as follows
    2481046 : Log:FAILDLVRY:ABCD
    2481047 : Log:FAILDLVRY:ABCD
    2481048 : Log:DLVRD:ABCD
    2481049 : Log:GOTACK:ABCD
    I want to search for instances whose title contains FAILDLVRY.
    In the search form that appears on the left side in Instances tab of BPEL console, I tried giving the following values for title field, but none works..
    \*FAILDLVRY\*
    %FAILDLVRY%
    FAILDLVRY
    What is the correct format to be able to search any instance that has title with FAILDLVRY?
    I am on 10.1.3.4
    Thanks,
    Amit

    There's no wild card search available on the BPEL console. You have to search for the whole of the title text excluding the instance ref ID.
    The best thing to search in your case would be - +'Log:FAILDLVRY:ABCD'+ wherein am asssuming that +'ABCD'+ is some constant.
    hth,
    -Shishir

  • Ratings as search or filter critera on apps?

    Is there anyway I can search for apps and utilize user ratings as a criteria?
    I keep clicking on an app only to see it's got a poor rating, then backing up to the search results and trying again. It would be nice if there was a rating option in the power search or in the sort/filter results so you could look at the highest rated ones first.
    Maybe I'm missing the obvious somewhere. Is there an easy way to filter out the poorly rated apps?
    Thank you.

    Oh well. Thank you for answering.

  • Copernicus Repository View, Search or Filter feature?

    Hi,
    is there a possibility, to search for a BO or a Data Type within 'Copernicus Repository View'?
    This would make my day way easier. Not searching all the time for BOs, which package and so on?
    If not, could SAP develop something like that?
    Really cool would be, something like Eclipse's 'Open Type' feature.
    Explanation here:
    http://juixe.com/techknow/index.php/2008/06/06/eclipse-tool-tip-7-resource-and-class-type-find/

    Hi,
    In Feature Pack 3.0 a search functionality was added to the Repository View. In the Repository View header there is an input field where you can type in search texts (also supporting *). You can search for
    - Solutions
    - Business Objects
    - Business Objects Nodes
    - Data Types 
    or all of them (default). The screenshot may give you a first impression.
    [FP 3.0 Repository View Search |https://wiki.sme.sap.com/wiki/download/attachments/187336528/RepositoryViewSearch.PNG]
    Kind Regards,
    Thomas
    Edited by: Thomas Kretz on Mar 11, 2011 4:15 PM

  • How can I search the filter log for a specific string?

    I have messages appearing in a sub folder named "2014". The main folder is called "Archives" . I do not know how they ended up there. I read through all my filters, but see nothing that sends messages to that folder. I scroll through the filter log and do not see the message subjects that end up in that folder.
    Is there a way to use something like <edit><find> to look for a string?

    A selected message will be moved to the Archives folder if you press the "A" key. Some people find this annoying, but it's possible to disable this, and other, keystrokes. http://gsfn.us/t/40hkd

  • Can I search and filter songs based on record label ?

    I would like to avoid certain lawsuit happy record labels. Does iTunes allow me to filter albums / songs based on the publishing record label? Which field / attribute should I look at?
    thanks,
    Vipunen

    I have a similar request to do bcc mail forwarding on Sun Java System Messaging Server 6.3-6.03 . Is it possible to provide step by step process of how to get the customized channel setup to bcc all mail traffic?
    Thanks

  • Searching for filter?

    I am going crazy trying to find a filter that I used once in FCP. It is a one that is bundled with the program, it allows you to create lines radiating out from a center image and rotate them. (Anyone seen the Lenny Kravitz video "Love Love Love"?) I cannot remember or find the filter anymore, I have gone through all of them but am totally missing it. Can anyone help?

    It isn't bundled with FCP but part of a package from CGM. If you have the CGM package, the filter would be found in the path I provided aboce.
    http://www.cgm-online.com/eiperle/cgm_e.html
    -DH

  • Calling search space filter

    Dear All,
    I would like to ask how can i get list of directory number with certian calling search space like CSS is International or Long Disance, i am using CUCM 7
    Please Help

    If you only need a list of DNs that have associated a certain CSS; than go under the CSS in question and on the navigation field on the top right hand side of the screen; drop down and select "Dependency Records". This will show you where the CSS is applied. Please note that you have to have the "Dependency Records" service enabled to run it.
    Regards,
    Yosh

  • What's up with filter bin content search not responding?

    Search function (filter bin content) in the project panel doesn't respond. It always dark gray, not light gray. The search function under the media browser tab runs fine. And everything else works fine: CS6, Intel i7; Nvidia GeoF 670. Windows 7/Professional.
    FIGURED IT OUT. THIS happens when the clips etc you are working with seem to be imported, but aren't. This is most likely to happen with us rookies who are training ourselves on something like video2brain's terrific Learn by Video series. The gotcha is that you  you can work away on this training without actually importing, thus the filter doesn't work. Just go to assets and import a folder and the filter will light up!

    Hi Mike,
    The terms find and process are very general, and can apply to many functions of OS X. Therefore the Search results will be numerous and widespread.
    Try using words that are more descriptive of the information you are looking for.
    The more terms you use, will narrow the field. See the example below.
    I also have noticed that, the "Quote A Phrase" function doesn't work as it used to, unless the phrase is quite lengthly. For example, an entire sentences can sometimes be found.
    For a shorter phrase, I have better luck with searching, if I use search terms in this format search++discussions.
    Which returns These Results.
    Searching for "I have tried to search this discussion area to find out what is happening" returns This.
    ali b

Maybe you are looking for

  • How can I tell what library is used for readdir?

    I have a problem that a program responds differently on two different unix machines, both of which are running Solaris 2.6, and using the same C compiler (4.2) "readdir" returns a "struct dirent" where the d_name is offset by two bytes on one of the

  • XPath vs Dom Traversal

    I've heard XPath is more efficient than using the DOM api to traverse the XML. I am just curious if this is true or not. Thanks

  • Unable to download error code 7

    Error code 7 constantly coming up when i try to download

  • How to separate UI logic and applcation logic

    Hi, For better performance i want to separate UI logic that is within PAI event and my application logic that is insert operation. any good idea?? shall i use function module?? Thanks Regards, Virat

  • Oracle 8i and MQseries queues

    Is there any possibility to access MQSeries queues using 8i AQ packages routines? I have to read some data from MQS and insert it into Oracle on Win2k and wonder if I need any additional MQ interfaces. Best regards, Tomek.