You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Zhang Weixue (JIRA)" <ji...@apache.org> on 2009/10/18 17:38:31 UTC
[jira] Updated: (OFBIZ-3049) Need help on service definition
[ https://issues.apache.org/jira/browse/OFBIZ-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhang Weixue updated OFBIZ-3049:
--------------------------------
We are not sure which services will be chained through SECA when we are writing services, and we cannot guarantee all chained services have same parameter names as well (e.g. one service needs a parameter named partyId, other services may need the same parameter but named partyIdFrom), so is there a mechanism that we can set parameters before calling it in SECA ? I believe this can give more flexibility and improve reuse of existing services.
> Need help on service definition
> -------------------------------
>
> Key: OFBIZ-3049
> URL: https://issues.apache.org/jira/browse/OFBIZ-3049
> Project: OFBiz
> Issue Type: Question
> Components: framework
> Affects Versions: Release Branch 4.0, Release Branch 9.04, SVN trunk
> Reporter: Zhang Weixue
>
> I want to implement below business logic which is a little different from current implementation of Ofbiz.
> 1.Setup below relationship between two parties:
> partyIdFrom: party1
> partyIdTo: party2
> roleTypeIdFrom: EMPLOYEE
> roleTypeIdTo: ORGANIZATION_ROLE
> 2. before doing above, the system need to AUTOMATICALLY set EMPLOYEE role to party1 and ORGANIZATION_ROLE to party2 if they are not set.
> Is there a way to achieve this by reusing existing services through seca?
> I attempted to set createPartyRole service as an action of createPartyRelationship service in seca, but found it doesn't work for the input field-names of these two services are different.
> Above is only an example, I have met many other similar cases in actual. Can anyone give me a solution for this? Thanks a lot.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.