IT Process Automation

  • 1.  How to get connectors parameters on the operator [Eclipse plugin]

    Posted Aug 10, 2017 10:44 AM

    Hi guys,

     

    I'm developing a connector using eclipse plugin. The auto-generated code, and the examples of implementing mongodb support  show you how to get properties of your operator,

     

    operatorProperties = (GetUserListProperties) getSvcGroup().getServiceOperation(getOperationName());
    operatorProperties.setRunnerClass(this);

    operatorProperties.get()

    String yourValue =  (String) operatorProperties.get("yourProperty");

    but not how to get them from the connector at the Implementation class.

     

    So what I would like is, the connection info to be defined on Configuration > Domain > Connectos > My Custom connector > Edit

     

    So I don't have to repeat that input on my operators.

     

    Anyone know how to do this?



  • 2.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Broadcom Employee
    Posted Aug 11, 2017 10:37 AM

    Can you check out the following info and see if it gets you the functionality you need:

    “Configure and Publish a Custom Operator Group”



  • 3.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Posted Aug 11, 2017 11:26 AM

    Hi Michael!

    The code is from my Java class.

    I need to get the value inside the implementation context of the class, before it is deployed as a custom operator.



  • 4.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Broadcom Employee
    Posted Aug 11, 2017 11:28 AM

    Oops, I completely misunderstood what you are looking for then, sorry about that!



  • 5.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Posted Aug 22, 2017 06:19 PM

    So, did some digging, and there is a Utility class that you can use for this.

    To get a textField defined in the Properties class as

     

    @CA_PAM_TextField(Name = "test", Label = "Test", Page = "Page")
    String test;

     

    You would have to use something like this in the Implementation Class:

     

    final C2OValue password = SvcOpDataHelper.getServiceOperationDataByTypePlatform(getGroupName(), "test", getParamValueMap(), getConfigurationHandler(), C2OValueTypeList.STRING, "test");



  • 6.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Posted Aug 23, 2017 05:09 AM

    Hi Marcel
    Thanks for the feedback ......... did the above string work and enable you to achieve what you were after ?
    If so, I can get one of our technical authors to update our documentation or supply this info via a knowledge article for others to benefit from.
    Please advise.



  • 7.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Posted Aug 23, 2017 02:43 PM

    Hi Stephen, I'm currently finishing my connector, and I'm planning to post it a full article about it, as it can be very tricky and there isn't lots of material about it.



  • 8.  Re: How to get connectors parameters on the operator [Eclipse plugin]

    Posted Aug 24, 2017 04:53 AM

    Thanks Marcel
    good to know and we will keep an eye open for it.

     

    With kind regards