Topic
  • 2 replies
  • Latest Post - ‏2013-07-23T14:39:31Z by rodrigo.gonzalez
rodrigo.gonzalez
rodrigo.gonzalez
18 Posts

Pinned topic SEND VARIABLES FROM BPM TO JAVA - JAVA INTEGRATION

‏2013-07-22T15:38:16Z |

Hi everyone.

I´m trying to make a java integration with bpm 7.5.1, this integration is to lauch a new process that is in another process app, to do that I use the rest api, so in my java code I put the url and simulate a post method wich launch the new process, until here everything its alritght.

But the things is that the url is static in the code, what i want to do is... build the url in some step before the java excution, cause i want to set the parameters i want to send in bpm, so once i build the url with parameter how can I send that url to my java integration and consume it?

Here is my java code.

Thanks in advance.

Attachments

  • ibmbpm751
    ibmbpm751
    44 Posts
    ACCEPTED ANSWER

    Re: SEND VARIABLES FROM BPM TO JAVA - JAVA INTEGRATION

    ‏2013-07-22T17:16:01Z  

    You can add parameters to sendPostRequest method. it will be available in data mapping section when you call this java class inside integration service.

     

    you can have like

    [public static String sendPostRequest(String Url){

    ....

    return statusCode;

    }

    ]

     

    now you can create url before calling this integration service.

  • ibmbpm751
    ibmbpm751
    44 Posts

    Re: SEND VARIABLES FROM BPM TO JAVA - JAVA INTEGRATION

    ‏2013-07-22T17:16:01Z  

    You can add parameters to sendPostRequest method. it will be available in data mapping section when you call this java class inside integration service.

     

    you can have like

    [public static String sendPostRequest(String Url){

    ....

    return statusCode;

    }

    ]

     

    now you can create url before calling this integration service.

  • rodrigo.gonzalez
    rodrigo.gonzalez
    18 Posts

    Re: SEND VARIABLES FROM BPM TO JAVA - JAVA INTEGRATION

    ‏2013-07-23T14:39:31Z  
    • ibmbpm751
    • ‏2013-07-22T17:16:01Z

    You can add parameters to sendPostRequest method. it will be available in data mapping section when you call this java class inside integration service.

     

    you can have like

    [public static String sendPostRequest(String Url){

    ....

    return statusCode;

    }

    ]

     

    now you can create url before calling this integration service.

    Thank you a lot for your aswer, it really help me.