MDM API for workflow

Hello,
we have workflow for a mdm table.we want to send workflow task completed records to xi.
I have written webservice for getting records from mdm.
but,I am not able to get task completed records filter for the same.
sample code is something like this........
          SearchParameters searchParam = search.GetParameters();
               FreeFormTableParameter fft =
                    searchParam.NewFreeFormTableParameter(aTable);
               String keyName = null;
               FreeFormParameterField fld = null;
               int filtersSize = filters.GetSize();
               for (int key = 0; key < filtersSize; key++) {
                    keyName = filters.GetAt(key).GetName();
                    fld = fft.GetFields().New(keyName);
                    fld.GetFreeForm().NewString(
                         filters.GetByName(keyName).GetValue().TranslateToString(),
                         FreeFormParameter.EqualToSearchType);
                    fft.Add(fld);
               //end filter
               A2iResultSet rs = null;               
               rs = catalog.GetResultSet(search, rsd, sortByColumn, true, 0);
I found <u>catalog.GetWorkflowTasks(Task.COMPLETED);</u> for task completed filter.
but,how it filters in resultset?

Hello,
I used the command using the following code :
GetActiveWorkflowTasksCommand gawf = null;
               try
                gawf = new GetActiveWorkflowTasksCommand(usc);
               catch(ConnectionException cc)
                    cc.printStackTrace();
               gawf.setSession(sessionId);
               gawf.setTableId(tables[0].getId());
               try
                    gawf.execute();
                    wdComponentAPI.getMessageManager().reportSuccess("Active Jobs Success");
               catch(CommandException ec)
                    ec.printStackTrace();
                    wdComponentAPI.getMessageManager().reportException(ec.getMessage(), true);
               WorkflowTask[] acwf = gawf.getActiveWorkflowTasks();
but the Array acwf does not have any Workflow Tasks in it.
Pls help

Similar Messages

  • MDM API for key Mapping.

    Hi All,
    Can anyone tell me how to use MDM API for updating key mapping ?
    I want to create a webservice which will take customer,client system and key for updating key mapping in mdm.
    Can anyone give me clue on this

    Hello Rama:
    Under Java you can do these things:
    Delete key mapping:
    CatalogData.DeleteKeyMapping(ClientSystem : String, Table :
    String, RecordID : int, Keys : String[])
    Argument Description
    ClientSystem -> Client system name
    Table -> Table name
    RecordID -> Record ID
    Keys -> Remote keys to remove
    Set a new keymapping:
    CatalogData.SetKeyMapping(ClientSystem : String, Table :
    String, RecordID : int, Keys : String[], DefaultKeyIndex
    : int)
    Argument Description
    ClientSystem ->    ClientSystem name
    Table ->           Table name
    RecordID ->        Record ID.
    Keys ->            Remote Keys you want to add
    DefaultKeyIndex -> Index entry into the key parameter
    indicating the key value as the default.
    I hope that helps
    Alejandro

  • MDM API - Identifying Workflows

    Hello All,
    I have written an application which gets launched when a  user clicks on the UWL subject line. This application recieves an MDM Workflow ID. Based on the Workflow ID recieved my application has to launch some different IViews. Is there any way where I can make an API call using the Workflow ID (a 5 digit number) and get the Workflow Name (for instance)?
    I am using the standard MDM API supplied along with the MDM Business Package.
    Thanks in Advance,
    PKS.

    closing the thread.. this error was due to ; Server Down.. Thanks!

  • API for workflows

    Hi All,
    I'm looking for API's to create and manipulate the workflows.I came accross a set of API's which are for KM, but I could not locate the API that could be used for creating the workflows. Do share your knowledge in this regard.
    Vijai

    If you want to download Postman - https://chrome.google.com/webstore/detail/postman-rest-client-packa/fhbjgbiflinjbdggehcddc bncdddomop?hl=en
    I have a "collection" that I can post a link for that will help get you started ..we don't really have any tutorials.
    I think you'll need the 9.99 "power-pack" to use my examples though.

  • MDM API for exclusive checkout

    Hi All,
    How can we use CheckoutRecordAsNew() API in MDM ??
    I want to add a record by checking out exclusively.
    I am using the following
    int recordID=catalog.checkoutRecordAsNew("TableName",true);
    Now I want to update the fields in the record.
    catalog.updateRecord("TableName",recordID,timestamp,fields)l
    My Q is is this the correct way of adding record ? how can we create timestamp here ?
    THanks, Anil

    Hi,
    I solved the above issue.
    I have a new question.
    I checked out a record using catalog.checkoutRecordAsNew("TableName",true);
    I have updated the field successfully using catalog.updateRecord("TableName",recordID,timestamp,fields)
    Now I did a search on RecordID using
    catalog.getRecordsByID(rsd,ID)
    I am getting the nullpointerException while reading the field.
    Value v=rs.getValueAt(0,"MDM_CITY");
    I can see the value in the data manager but in my API i don't see that value.
    What could be the issue here ??
    Thanks, Anil

  • Does MDM APIs work in CE 7.2 landscape?

    Hello Experts,
    We have a requirement to fetch data from MDM tables and display in WD Java applications. We have to use MDM APIs for that. Our landscape is as follows:
    Portal server is on CE 7.2
    MDM Server version is 7.1 SP05
    Now, the major problem is, in order to establish a connection to repository by MDM API, we need to provide "MDM System Alias" in the code. This alias is for the system of type MDM created in portal system administration --> System Config.
    As far as I know, we need this alias created if we want to establish a connection. But following documentation on help.sap.com says that MDM Business Package isn't supported for CE 7.2 version. And until we deploy MDM BP, system template of type MDM isn't avaialble on portal.
    http://help.sap.com/saphelp_mdm71/helpdata/en/5e/48a04270600d31e10000000a1550b0/frameset.htm (See the Prerequisites section)
    What should we do in this case? Is it so that MDM APIs are not supported for CE 7.2 version at all? Or is there any other way to achive it?
    Please help me with your valuable inputs.
    Thank You,
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:12 PM
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:14 PM

    Hello Kanstantsin Chernichenka,
    Thank you very much for the reply. There is no way I can do this in SP 05? or do I have to upgrade to SP7 only? I am not sure if we can upgrade to SP7 that's why I am a bit concerned.
    And it is supported in SP07 means that I can deploy a business package for MDM on CE 7.2, only if MDM SP is 07?
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:54 PM

  • Hierarchical Table Commands in MDM API

    Hi,
    I found only RetrieveLimitedHierTreeCommand,RetrieveLimitedHierChildrenCommand in MDM API for hierarchical tables.
    So how can we add a child or a sibling, delete a child or sibling to the nodes of the tree.
    Can anyone please give me links or some documentation on how to proceed with this.
    The other problem we are facing when retrieving the children using RetrieveLimitedHierTreeCommand
    When we add a search on the command it does not retrieve the children. it says the children for the level one node are null but if i donto set search it retrieves the children for all the nodes.
    Is there any specific setting that has to be done for using the search.
    Please let me know
    Thanks,
    Padmaja

    Hi Greg,
    I am adding the code snippet below. Can you please look into this and check if there are any problems
    RetrieveLimitedHierTreeCommand hr=new RetrieveLimitedHierTreeCommand(conAccessor);
    Search ser=new Search(repoSchemacmd.getRepositorySchema().getTable("New_Code").getId());
    FieldId fldId =repoSchemacmd.getRepositorySchema().getTableSchema("New_Code").getField("New_Code").getId();
    StringValue fldVal = new StringValue("G0440");
    ser.addSearchItem(new FieldSearchDimension(fldId),new TextSearchConstraint(fldVal.getString(),TextSearchConstraint.EQUALS));
    hr.setSearch(ser);
    ResultDefinition rd=new ResultDefinition(repoSchemacmd.getRepositorySchema().getTable("New_Code").getId());
    rd.setSelectFields(repoSchemacmd.getRepositorySchema().getTableSchema("New_Code").getFieldIds());
    hr.setResultDefinition(rd);
    hr.setSession(userSessionID);
    try {
         hr.execute();
    } catch (CommandException e) {
        e.printStackTrace();
    When i execute this part of code and get the children. i get the children as null.
    Thanks,
    Padmaja

  • Andriod MDM API

    Does anyone know about an MDM API for lenovo devices?

    May I ask why you would like access to those APIs?  Those APIs are required to be called from registered Android Device Administrators.  The intent was to provide these APIs to MDM providers who are interested in adding support for Lenovo devices into their products, and therefore, Lenovo does not publish the APIs publicly.

  • ABAP APIs for MDM Workflow Modification

    Hello All
    I require a help from all of you. Currently I have a particular business case where I need to configure the MDM workflow & do changes & modifications in it via ABAP APIs. Currently we are having Java APIs in plcae.
    Can you please tell me whether we have some ABAP APIS for this MDM Workflows, if yes what are their EXact names & functionalitites.
    Also can we download them from Service Marketplace.
    Please reply ASAP.
    Regards
    Madhurim Basu

    Hi Madhurim Basu
    ABAP API(SAP MDM 5.5.-7.1) are'nt support workflow management
    SAP MDM(5.5-7.1) JAVA API  are support workflow
    More about JAVA API you can read from:
    http://help.sap.com/javadocs/MDM/current/
    Regards
    Kanstantsin

  • ABAP API for MDM work flow

    Hi SDN,
    I need some information related to ABAP API for MDM workflow. I did search in SDN and I found one solution in a thered posted on Jul-2008.
    ABAP API - MDM Workflow execute
    My dought is: Do we have any ABAP API for call MDM work flow. Please provide me the solution ASAP. Apprciate for your immediate response.
    Regards,
    Kumar.

    Hi LAKSHMAN ,
    To answer your question specifically
    Using ABAP api you cannot call MDM workflows as of mdm 5.5 there are no functions specific to calling MDM workflows in ABAP.If you want to implement workflows on ABAP side you need to go for SAP ECC workflows which is a different topic than MDM>
    To call MDM workflows over the Java stack ie WAS (SAP portal),You have 2 ways
    - UWL
    - Guided Procedures.
    - UWL is a way of calling MDM workflows on EP.Wherein the workflow design will be done in MDM and it will only be called in portal using appropiate connections and configurations.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771f1a61-0e01-0010-daa9-93a52905da09 (uwl)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45 (UWL config)
    - GP is a way where by you need to design the entire workflow on SAP portal the logic can be pertaining to MDM but the design is completely on portal using webdynpros and api.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831  (Guided procedures)
    Enterprise Master Data Management   (EP Guided)
    To know more on ABAP api and its provider classes you can refer the below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44  (abap api webinar)
    Re: Abap api error (Abap api provider classes Forum)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • How to refer the class package "com.sapportals.connector" for MDM API?

    Hi,
    Iam trying to execute one example mdm api program in dynpro/ejb.
    I could not refer the class package com.sapportals.connector.
    What SCA or build path package needed for dev time and runtime and where do i get that.
    Please help me.
    Thanks
    Hari

    Hi Armin,
    Sorry that I still got problem on importing and make use of the class for knowledgemanagement. I can found the cooresponding .jar file in folder "jakarta-tomcat-3.3.2\webapps\irj\WEB-INF\plugins\portal\services\knowledgemanagement\lib". And added the services reference as "ServicesReference=htmlb, knowledgemanagement". However, I still can't use the class for KM.
    I have read those code sample from KM in SDN, but they are mentioning the programming part and not the setting. Can you suggest the detail steps and code on adding the KM class into my customize class?
    I am using Eclipse as my development tools.
    Thanks & Regards
    Sam
    Message was edited by: Sam Choy

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • What's the difference between WorkflowTask and WorkflowJob in SAP MDM API?

    Hi Support,
      Could you tell me the differences between WorkflowTask and WorkflowJob in SAP MDM API? And which can represent a workflow in Workflows tab in MDM Date Manager.
    Thanks & Regards,
    Song

    Hi Songxu,
    Workflow Task: It is the task(workflow steps like Process, Approver etc) assigned to different user during Workflow. User's  use the workflow tabs in Data Manager to view and process workflow tasks. see page 91/654 of Data Manager Guide.
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/4b/72b8aaa42301bae10000000a42189b/MDMDataManager71.pdf
    Workflow Job: Each workflow is invoked as a job that can consist of multiple records that move through the steps of a workflow (how many records are involved into your Workflow) as a group while simultaneously maintaining record-level granularity. Once the job has been launched, it moves automatically from step-to-step and from user-to-user, showing up in the inbound task queue in each useru2019s Workflows tab for disposition and processing.
    Regards,
    Mandeep Saini

  • Remote Key Manupulation in Java MDM APIs

    Hi ,
    I need to do create/Modify/retrieve remote key using MDM Java APIs. I have found out two APIs for retrieve and modify of remote key (RetrieveRecordsKeyMappingsCommand and ModifyRecordsKeyMappingsCommand using RecordKeyMapping).
    I am not getting any API to create remote key using Java APIs. Can anyone help me in this regard.If anyone has sample code also that would a great help.
    Thanks and Regards,
    Subhasis

    Hi,
    Please have a look on below code ...
              /TableID/
              TableId tableId = schema.getTable("table Code").getId();
    RecordId recordId = new RecordId("R1"); // record id of record to which you are going to add key mapping
              /Remote System Properties/
              RemoteSystemProperties remoteSystem = schema.getRemoteSystem("RemoteSystemCode");
              /*Creating new instance of RecordKeyMapping */
              RecordKeyMapping recordKeyMapp = KeyMappingFactory.createRecordKeyMapping(tableId,recordId);
              /*Creating new instance of KeyMapping */
              KeyMapping keyMapping = KeyMappingFactory.createKeyMapping(remoteSystem.getId());
              /*Setting value to Key value */
              keyMapping.addKey("1234");
              /storing keymapping instance in RecordKeyMapping instance/
              recordKeyMapp.addKeyMapping(keyMapping);
              RecordKeyMapping [] recordKey = ;
              ModifyRecordsKeyMappingsCommand rkm = null;
              try {
               rkm = new ModifyRecordsKeyMappingsCommand(context);
              } catch (SessionException e) {
              } catch (ConnectionException e) {
              rkm.setKeyMappings(keyMappings);
              try {
                   rkm.execute();
              } catch (CommandException e) {
    Hope this helps you.
    Cheers,
    Veeru.

  • Best practice for workflow triggering from Web Dynpro UI

    Hello, workflow community!
    I'm working on a task which allow to trigger the workflow by clicking a button in Web Dynpro UI. As always, there are multiple ways to do that, for instance, to use SAP Workflow API (SAP_WAPI_START_WORKFLOW) or to raise an event upon the button click, which will be caught by workflow template.
    In my opinion, the optimal solution is to call FM, which will call ABAP-class, raising an event, which, in turn, will be caught by workflow template. In this case, FM will service kind of wrapper, where we can implement some additional checks if needed.
    But the question is what approach is the best practice — to raise an event or use SAP_WAPI_*?
    Thanks.

    let combine, use SAP_WAPI_CREATE_EVENT
    usually I would not recommend creating a workflow directly (SAP_WAPI_START_WORKFLOW) since when I look for workflows in a system I usually start from SWE2 (the event linkage) which uses events so the workflow you start by SAP_WAPI_START_WORKFLOW will not be seen there, also SWE2 gives you better control for starting the workflow, you can easily deactivate an event linkage. finding where you called the workflow by SAP_WAPI_START_WORKFLOW will be more difficult and deactivation will require a code change.
    so use events, and start them by SAP_WAPI_CREATE_EVENT
    Also pay attention that you have a check function module option in SWE2.

Maybe you are looking for

  • IDOC data transfer between 2 SAP Clients on same system

    HI All, i was transferring data through standard IDOC from table A609 in client 100(say) to client 301(say). Sender    u2013 100  (sender side) Receiver u2013 301  (receiver side) I did all configurations that were required for transferring data. But

  • Runtime errors in Roxio Media Manager 9

    I am running Desktop Manager 4.5 with my 8330 curve.  I am getting runtime error for mediamanager9.exe whenever I try to use it to transfer data over to my 8330.  Any ideas to resolve this issue?

  • Unable to re-enable a Word 2010 addin

    I'm building an Addin via VSTO for Word 2010.  I got an error message indicating that my addin had a serious error and if I'd like to disable it. Errantly, I clicked "Yes".  Now, I cannot re-enable it no matter what I do. Here are all the things I've

  • Adobe Flash Is Not A Finished Program

    If it was, there would not be so many questions here at all It took Adobe Illustrator about 5 Versions to even be near Complete Someday they will finish it But for now we all have to suffer with Arcane Tedious Code Problems

  • Nakisa Orchart 2.1: Export to Visio

    Hello, Is there a possiblity to export the organizational chart to Visio ? I've seen in a thread that this is possible for position hierarchy only, is it foreseen to enable this for all hierarchies? Thanks, Laurent