Hi Jorge, We have update the billing engine for AM 2.1.0. Please get the latest billing engine/workflow extension from here[1] and do the test again.
Another question, my scenario work when the user exists inside the billing > DB, but when the user does not exist I get redirected to the billing > system, I can register my user and I get redirected again to the apim store, > but I don´t see the completed method called asynchronous Can you raise a git issue. we will check and do the needful. [1] https://github.com/ruks/wso2-am-billing-engine/releases/tag/am-2.1.0 Thanks and Regards On Tue, Nov 14, 2017 at 8:47 PM, Jorge <[email protected]> wrote: > Hi Rukshan, thanks for answer. > > I tried before with that repo and it worked fine with maven dependency: > <dependency> > <groupId>org.wso2.carbon.apimgt</groupId> > <artifactId>org.wso2.carbon.apimgt.impl</artifactId> > <version>6.0.4</version> > </dependency> > > Still, remain problem 2 with the jaggery files: > In jaggery I see this call: > result = store.resumeWorkflow(workflowReference, status, description); > > but in org.wso2.carbon.apimgt.hostobjects jar I have this method: > public static NativeObject jsFunction_resumeWorkflow(Context cx, > Scriptable thisObj, Object[] args, Function funObj) > throws ScriptException, WorkflowException > > > > > Another question, my scenario work when the user exists inside the billing > DB, but when the user does not exist I get redirected to the billing > system, I can register my user and I get redirected again to the apim > store, but I don´t see the completed method called asynchronous > > > Regards, > Jorge > > 2017-11-13 22:08 GMT-05:00 Rukshan Premathunga <[email protected]>: > >> Hi Jorge, >> >> Did you able to check with branch [1] and AM 2.1.0? Or you experience >> this issue when you did so? Initially branch [1] released after tested >> with AM 2.0.0. If you faced any issues with AM 2.1.0, can you please >> attached the logs? Will check this further for AM 2.1.0. >> >> [1] https://github.com/chamilaadhi/wso2-am-billing-engine/tree/am-2.0 >> >> Thanks and Regards >> >> On Tue, Nov 14, 2017 at 1:00 AM, Jorge <[email protected]> wrote: >> >>> Hi all. >>> >>> Recently I followed this guide[1] for enable api monetizaction in WSO2 >>> APIM 2.1.0 with severals errors. >>> >>> 1. The code with the workflow and the billing engine point out to[2] >>> with version 1.10. This code use this maven dependency [3] with a issue >>> related with the org.wso2.carbon.apimgt.impl_6.1.66.jar inside WSO2 >>> APIM 2.1.0. I found a more updated version in [4] >>> >>> In version 5.0.3 you create apiMgtDAO object with this line: >>> >>> ApiMgtDAO apiMgtDAO = new ApiMgtDAO(); >>> >>> In version 6.1.66 with this another line: >>> >>> ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance(); >>> >>> 2. Inside the jaggery api store webapp I found a issue with the module >>> workflow in the function resumeWorkflow. Inside this function it try to >>> call this java method: >>> >>> result = store.resumeWorkflow(workflowReference, status, description); >>> >>> but inside the org.wso2.carbon.apimgt.hostobjects_6.1.66 jar file the >>> method get called with the followings parameters: >>> >>> public static void jsFunction_loadRegistryOfTenant(Context cx, >>> Scriptable thisObj, Object[] args, Function funObj) >>> >>> In any case, inside this file: /site/blocks/workflow/workflow >>> -listener/ajax/workflow-listener.jag I cannot get a response from this >>> invocation: >>> >>> result = mod.resumeWorkflow(workflowReference, status, description); >>> >>> Always = empty so: >>> >>> if (result.error) = false >>> >>> response.status = result.statusCode; // with errors.. >>> >>> Any help or idea? >>> >>> >>> >>> Regards, >>> Jorge. >>> >>> >>> References: >>> [1] https://docs.wso2.com/display/AM210/Enabling+Monetization+of+APIs >>> >>> [2] https://docs.wso2.com/download/attachments/76743427/wso2-am- >>> billing-engine-am-1.10.zip?version=1&modificationDate=150962 >>> 5739000&api=v2 >>> >>> [3] <dependency> >>> <groupId>org.wso2.carbon.apimgt</groupId> >>> <artifactId>org.wso2.carbon.apimgt.impl</artifactId> >>> <version>5.0.3</version> >>> </dependency> >>> >>> [4] https://github.com/chamilaadhi/wso2-am-billing-engine >>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Rukshan Chathuranga. >> Software Engineer. >> WSO2, Inc. >> +94711822074 <+94%2071%20182%202074> >> > > -- Rukshan Chathuranga. Software Engineer. WSO2, Inc. +94711822074
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
