Where is a triggering rule get defined? I’m trying to
follow the createPerson service, but I can’t seem to locate where the “rule”
is defined. 276593[ RequestHandler.java:208:INFO ] [Processing
Request]: createPerson 276656[ ServiceEcaRule.java:134:INFO ] Running Service
ECA Service: ensureNaPartyRole, triggered by rule on Service: createPerson 276750[ UtilXml.java:242:DEBUG] XML Read 0.047s:
file:/E:/ofbiz_5521/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service
finished- total:0.203,since last(Begin):0.203]] - 'partymgr /
ensureNaPartyRole' 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service
finished- total:0.266,since last(Begin):0.266]] - 'partymgr / createPerson' 276875[ RequestHandler.java:352:INFO ]
[RequestHandler.doRequest]: Response is a view. ----------------------------------------- Michael Irving Keynetx, Inc. - Building Solutions
for Success Fax: (425) 871-2838 email: [hidden email] * * * Visit Our Web Site: http://www.keynetx.net * * * -------------------------------------------------------------------------------- NOTICE: If received in error, please
destroy and notify sender. Sender does not waive confidentiality or privilege,
and use is prohibited. _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Lucky for you there is a document about this. See: http://www.ofbiz.org/docs/services.html#ECAs -David On Sep 4, 2005, at 2:50 PM, Michael Irving wrote: > Where is a triggering rule get defined? I’m trying to follow the > createPerson service, but I can’t seem to locate where the “rule” > is defined. > > > > > > 276593[ RequestHandler.java:208:INFO ] [Processing Request]: > createPerson > > 276656[ ServiceEcaRule.java:134:INFO ] Running Service ECA > Service: ensureNaPartyRole, triggered by rule on Service: createPerson > > 276750[ UtilXml.java:242:DEBUG] XML Read 0.047s: file:/ > E:/ofbiz_5521/applications/party/script/org/ofbiz/party/party/ > PartySimpleMethods.xml > > 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service finished- > total:0.203,since last(Begin):0.203]] - 'partymgr / ensureNaPartyRole' > > 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service finished- > total:0.266,since last(Begin):0.266]] - 'partymgr / createPerson' > > 276875[ RequestHandler.java:352:INFO ] > [RequestHandler.doRequest]: Response is a view. > > > > ----------------------------------------- > Michael Irving > Keynetx, Inc. - Building Solutions for Success > Mobile: (267)474.3564 > Fax: (425) 871-2838 > email: [hidden email] > > * * * Visit Our Web Site: http://www.keynetx.net * * * > > ---------------------------------------------------------------------- > ---------- > NOTICE: If received in error, please destroy and notify sender. > Sender does not waive confidentiality or privilege, and use is > prohibited. > > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Thanks. I was in that document looking for "rules". Now I'm on-board with
it. What would be the suggested method of creating an employee? Here is what I'm thinking: 1) createPerson page (fill in name, ssn, etc) 2) Create Person 3) Create Party Role ("EMPLOYEE") 4) Create Party Relationship between the person and "company". 5) send the user to the view employee profile page where the address and other child records can be added. What would you suggest as the best method to call the existing methods for createPerson, createPartyRole and createPartyRelationship? Should I create a new service? Use ECAs? Thanks, -Mike -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of David E. Jones Sent: Sunday, September 04, 2005 10:01 AM To: OFBiz Project Development Discussion Subject: Re: [OFBiz] Dev - Service Rule? Lucky for you there is a document about this. See: http://www.ofbiz.org/docs/services.html#ECAs -David On Sep 4, 2005, at 2:50 PM, Michael Irving wrote: > Where is a triggering rule get defined? I'm trying to follow the > createPerson service, but I can't seem to locate where the "rule" > is defined. > > > > > > 276593[ RequestHandler.java:208:INFO ] [Processing Request]: > createPerson > > 276656[ ServiceEcaRule.java:134:INFO ] Running Service ECA > Service: ensureNaPartyRole, triggered by rule on Service: createPerson > > 276750[ UtilXml.java:242:DEBUG] XML Read 0.047s: file:/ > E:/ofbiz_5521/applications/party/script/org/ofbiz/party/party/ > PartySimpleMethods.xml > > 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service finished- > total:0.203,since last(Begin):0.203]] - 'partymgr / ensureNaPartyRole' > > 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service finished- > total:0.266,since last(Begin):0.266]] - 'partymgr / createPerson' > > 276875[ RequestHandler.java:352:INFO ] > [RequestHandler.doRequest]: Response is a view. > > > > ----------------------------------------- > Michael Irving > Keynetx, Inc. - Building Solutions for Success > Mobile: (267)474.3564 > Fax: (425) 871-2838 > email: [hidden email] > > * * * Visit Our Web Site: http://www.keynetx.net * * * > > ---------------------------------------------------------------------- > ---------- > NOTICE: If received in error, please destroy and notify sender. > Sender does not waive confidentiality or privilege, and use is > prohibited. > > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
You might want to look how a customer is created in the ecommerce component.
creating an employee could use the same principle. look at applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml it is called by the request ecommerce/control/newcustomer -- Regards, Hans Bakker ANT Websystems Co.,Ltd (http://www.antwebsystems.com) If you want to verify that this message really originates from from the above person, download the public key from: http://www.antwebsystems.com/hbakkerAntwebsystems.asc On Sunday 04 September 2005 21:59, Michael Irving wrote: > Thanks. I was in that document looking for "rules". Now I'm on-board with > it. > > What would be the suggested method of creating an employee? Here is what > I'm thinking: > > 1) createPerson page (fill in name, ssn, etc) > 2) Create Person > 3) Create Party Role ("EMPLOYEE") > 4) Create Party Relationship between the person and "company". > 5) send the user to the view employee profile page where the address and > other child records can be added. > > What would you suggest as the best method to call the existing methods for > createPerson, createPartyRole and createPartyRelationship? Should I create > a new service? Use ECAs? > > Thanks, > > -Mike > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On > Behalf Of David E. Jones > Sent: Sunday, September 04, 2005 10:01 AM > To: OFBiz Project Development Discussion > Subject: Re: [OFBiz] Dev - Service Rule? > > > Lucky for you there is a document about this. See: > > http://www.ofbiz.org/docs/services.html#ECAs > > -David > > On Sep 4, 2005, at 2:50 PM, Michael Irving wrote: > > Where is a triggering rule get defined? I'm trying to follow the > > createPerson service, but I can't seem to locate where the "rule" > > is defined. > > > > > > > > > > > > 276593[ RequestHandler.java:208:INFO ] [Processing Request]: > > createPerson > > > > 276656[ ServiceEcaRule.java:134:INFO ] Running Service ECA > > Service: ensureNaPartyRole, triggered by rule on Service: createPerson > > > > 276750[ UtilXml.java:242:DEBUG] XML Read 0.047s: file:/ > > E:/ofbiz_5521/applications/party/script/org/ofbiz/party/party/ > > PartySimpleMethods.xml > > > > 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service finished- > > total:0.203,since last(Begin):0.203]] - 'partymgr / ensureNaPartyRole' > > > > 276859[ ServiceDispatcher.java:447:DEBUG] [[Sync service finished- > > total:0.266,since last(Begin):0.266]] - 'partymgr / createPerson' > > > > 276875[ RequestHandler.java:352:INFO ] > > [RequestHandler.doRequest]: Response is a view. > > > > > > > > ----------------------------------------- > > Michael Irving > > Keynetx, Inc. - Building Solutions for Success > > Mobile: (267)474.3564 > > Fax: (425) 871-2838 > > email: [hidden email] > > > > * * * Visit Our Web Site: http://www.keynetx.net * * * > > > > ---------------------------------------------------------------------- > > ---------- > > NOTICE: If received in error, please destroy and notify sender. > > Sender does not waive confidentiality or privilege, and use is > > prohibited. > > > > > > > > _______________________________________________ > > Dev mailing list > > [hidden email] > > http://lists.ofbiz.org/mailman/listinfo/dev > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev > > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev Regards, Hans Bakker ANT Websystems Co.,Ltd (http://www.antwebsystems.com) If you want to verify that this message really originates from from the above person, download the public key from: http://www.antwebsystems.com/hbakkerAntwebsystems.asc _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev attachment0 (196 bytes) Download Attachment |
Free forum by Nabble | Edit this page |