Issue 4278: Activity service issue: Add CompletionStatus to complete_activity (ots-structs-ftf) Source: International Business Machines (Dr. Ian Robinson, ian_robinson@uk.ibm.com) Nature: Uncategorized Issue Severity: Summary: In a distributed system consisting of: client---------->server1 a client may perform: CosActivity::Current_ptr cur; cur->set_completion_status(CompletionStatusFail); cur->set_completion_signal_set("CSS"); do some work - all is well cur->complete_with_status(CompletionStatusSuccess); The Activity service implementation of Current::complete_with_status needs to propagate both CompletionSignalSet name and CompletionStatus to the ActivityCoordinator. The means by which the Current object calls the ActivityCoordinator is via the latter;s complete_activity method. The signature for complete_activity allows the SignalSet name to be passed but not the CompletionStatus. I think at some point we had a set_completion_status method on the ActivityCoordinator but it is no longer there. There is currently no way for this information to be passed to the ActivityCoordinator. I believe the complete_activity method should take the CompletionStatus as an additional parameter. Resolution: Modify the IDL and accompanying text Revised Text: 1. Add a CompletionStatus parameter to the complete_activity and process_signal_set methods of the ActivityCoordinator interface. 2. Add a Status parameter to the set_completion_status method of the SignalSet interface. A SignalSet that is used both for completion and general broadcast may use this to determine whether or not the Activity is completing when it is asked to produce signals. Actions taken: April 20, 2001: received issue May 2, 2003: closed issue Discussion: End of Annotations:===== From: ian_robinson@uk.ibm.com Received: from d06mta05.portsmouth.uk.ibm.com (d06mta05_cs0 [9.180.35.3]) by d06relay01.portsmouth.uk.ibm.com (8.8.8m3/NCO v4.96) with SMTP id QAA109114; Fri, 20 Apr 2001 16:17:59 +0100 Received: by d06mta05.portsmouth.uk.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 80256A34.005408DD ; Fri, 20 Apr 2001 16:17:52 +0100 X-Lotus-FromDomain: IBMGB To: ots-structs-ftf@omg.org cc: issues@omg.org Message-ID: <80256A34.0053ABDF.00@d06mta05.portsmouth.uk.ibm.com> Date: Fri, 20 Apr 2001 16:01:27 +0100 Subject: Activity service issue: Add CompletionStatus to complete_activity Mime-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset=us-ascii X-UIDL: +]+e95_(!!MY+!!^j*e9 In a distributed system consisting of: client---------->server1 a client may perform: CosActivity::Current_ptr cur; cur->set_completion_status(CompletionStatusFail); cur->set_completion_signal_set("CSS"); do some work - all is well cur->complete_with_status(CompletionStatusSuccess); The Activity service implementation of Current::complete_with_status needs to propagate both CompletionSignalSet name and CompletionStatus to the ActivityCoordinator. The means by which the Current object calls the ActivityCoordinator is via the latter;s complete_activity method. The signature for complete_activity allows the SignalSet name to be passed but not the CompletionStatus. I think at some point we had a set_completion_status method on the ActivityCoordinator but it is no longer there. There is currently no way for this information to be passed to the ActivityCoordinator. I believe the complete_activity method should take the CompletionStatus as an additional parameter. Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com From: ian_robinson@uk.ibm.com Received: from d06mta05.portsmouth.uk.ibm.com (d06mta05_cs0 [9.180.35.3]) by d06relay02.portsmouth.uk.ibm.com (8.8.8m3/NCO v4.96) with SMTP id QAA17052 for ; Wed, 16 May 2001 16:33:23 +0100 Received: by d06mta05.portsmouth.uk.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 80256A4E.0055734F ; Wed, 16 May 2001 16:33:20 +0100 X-Lotus-FromDomain: IBMGB To: issues@omg.org Message-ID: <80256A4E.004C84EE.00@d06mta05.portsmouth.uk.ibm.com> Date: Wed, 16 May 2001 14:44:24 +0100 Subject: Activity service issue: Add CompletionStatus to complete_activity Mime-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset=us-ascii X-UIDL: [@6e99UZ!![fK!!3]od9 Please could you give this an Issue # and add it to the Addition Structs FTF page? Thanks...Ian Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com ---------------------- Forwarded by Ian Robinson/UK/IBM on 16/05/2001 14:42 --------------------------- Ian Robinson 20/04/2001 16:01 To: ots-structs-ftf@omg.org cc: issues@omg.org From: Ian Robinson/UK/IBM@IBMGB Subject: Activity service issue: Add CompletionStatus to complete_activity In a distributed system consisting of: client---------->server1 a client may perform: CosActivity::Current_ptr cur; cur->set_completion_status(CompletionStatusFail); cur->set_completion_signal_set("CSS"); do some work - all is well cur->complete_with_status(CompletionStatusSuccess); The Activity service implementation of Current::complete_with_status needs to propagate both CompletionSignalSet name and CompletionStatus to the ActivityCoordinator. The means by which the Current object calls the ActivityCoordinator is via the latter;s complete_activity method. The signature for complete_activity allows the SignalSet name to be passed but not the CompletionStatus. I think at some point we had a set_completion_status method on the ActivityCoordinator but it is no longer there. There is currently no way for this information to be passed to the ActivityCoordinator. I believe the complete_activity method should take the CompletionStatus as an additional parameter. Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com From: "Mark Little" To: , References: <80256A34.0053ABDF.00@d06mta05.portsmouth.uk.ibm.com> Subject: Re: Activity service issue: Add CompletionStatus to complete_activity Date: Mon, 23 Apr 2001 17:08:21 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Type: text/plain; charset="iso-8859-1" X-UIDL: ;TVd9FH&!!Zo@e9aHid9 Status: U > I believe the complete_activity method should take the CompletionStatus as > an additional parameter. I think you're right, but that process_signal_set also needs the same parameter for the same reason. Mark. ---------------------------------------------- Dr. Mark Little (mark@arjuna.com) Transactions Architect, HP Arjuna Labs Phone +44 191 2064538 Fax +44 191 2064203 From: ian_robinson@uk.ibm.com Received: from d06mta05.portsmouth.uk.ibm.com (d06mta05_cs0 [9.180.35.3]) by d06relay02.portsmouth.uk.ibm.com (8.8.8m3/NCO v4.96) with SMTP id OAA252148; Thu, 17 May 2001 14:19:48 +0100 Received: by d06mta05.portsmouth.uk.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 80256A4F.00493552 ; Thu, 17 May 2001 14:19:37 +0100 X-Lotus-FromDomain: IBMGB To: "Mark Little" cc: ots-structs-ftf@omg.org Message-ID: <80256A4F.00492FAA.00@d06mta05.portsmouth.uk.ibm.com> Date: Thu, 17 May 2001 14:06:48 +0100 Subject: Re: Issue #4278 - Activity service issue: Add CompletionStatus to complete_activity Mime-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset=us-ascii X-UIDL: ()>e962+e9F>H!!O#2e9 Yes I agree - process_signal_set should also take an arg of CompletionStatus. However, we should clarify whether or not a SignalSet that is *not* used during completion should require its set_completion_status method to have been called before get_signal is called. For non-completion-SignalSets, the CompletionStatus may be irrelevant. There are a few areas of the spec that seem to imply that all SignalSets are completion SignalSets, which is not the case. For example in 2.2.1: "Once the Activity has begun to complete (the ActivityCoordinator has retrieved the first Signal from a SignalSet), the status of the Activity is under the control of the SignalSets, and cannot be changed directly by any other entity." Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com "Mark Little" on 23/04/2001 17:08:21 Please respond to "Mark Little" To: Ian Robinson/UK/IBM@IBMGB, ots-structs-ftf@omg.org cc: Subject: Re: Activity service issue: Add CompletionStatus to complete_activity > I believe the complete_activity method should take the CompletionStatus as > an additional parameter. I think you're right, but that process_signal_set also needs the same parameter for the same reason. Mark. ---------------------------------------------- Dr. Mark Little (mark@arjuna.com) Transactions Architect, HP Arjuna Labs Phone +44 191 2064538 Fax +44 191 2064203 From: ian_robinson@uk.ibm.com Received: from d06mta05.portsmouth.uk.ibm.com (d06mta05_cs0 [9.180.35.3]) by d06relay02.portsmouth.uk.ibm.com (8.8.8m3/NCO v4.96) with SMTP id OAA130752 for ; Thu, 17 May 2001 14:39:48 +0100 Received: by d06mta05.portsmouth.uk.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 80256A4F.004B088E ; Thu, 17 May 2001 14:39:33 +0100 X-Lotus-FromDomain: IBMGB To: ots-structs-ftf@omg.org Message-ID: <80256A4F.004B06ED.00@d06mta05.portsmouth.uk.ibm.com> Date: Thu, 17 May 2001 14:34:55 +0100 Subject: Re: Issue #4278 - Activity service issue: Add CompletionStatus to complete_activity Mime-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset=us-ascii X-UIDL: MMJe9\@8!!PmYd9Koa!! Further, With a SignalSet that is used at times other than completion, it should be possible to call process_signal_set on it multiple times during the lifetime of an Activity. Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com ---------------------- Forwarded by Ian Robinson/UK/IBM on 17/05/2001 14:33 --------------------------- Ian Robinson 17/05/2001 14:06 To: "Mark Little" cc: ots-structs-ftf@omg.org From: Ian Robinson/UK/IBM@IBMGB Subject: Re: Issue #4278 - Activity service issue: Add CompletionStatus to complete_activity (Document link: Ian Robinson) Yes I agree - process_signal_set should also take an arg of CompletionStatus. However, we should clarify whether or not a SignalSet that is *not* used during completion should require its set_completion_status method to have been called before get_signal is called. For non-completion-SignalSets, the CompletionStatus may be irrelevant. There are a few areas of the spec that seem to imply that all SignalSets are completion SignalSets, which is not the case. For example in 2.2.1: "Once the Activity has begun to complete (the ActivityCoordinator has retrieved the first Signal from a SignalSet), the status of the Activity is under the control of the SignalSets, and cannot be changed directly by any other entity." Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com "Mark Little" on 23/04/2001 17:08:21 Please respond to "Mark Little" To: Ian Robinson/UK/IBM@IBMGB, ots-structs-ftf@omg.org cc: Subject: Re: Activity service issue: Add CompletionStatus to complete_activity > I believe the complete_activity method should take the CompletionStatus as > an additional parameter. I think you're right, but that process_signal_set also needs the same parameter for the same reason. Mark. ---------------------------------------------- Dr. Mark Little (mark@arjuna.com) Transactions Architect, HP Arjuna Labs Phone +44 191 2064538 Fax +44 191 2064203 From: "Mark Little" To: Cc: References: <80256A4F.00492FAA.00@d06mta05.portsmouth.uk.ibm.com> Subject: Re: Issue #4278 - Activity service issue: Add CompletionStatus to complete_activity Date: Mon, 21 May 2001 12:02:57 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Type: text/plain; charset="iso-8859-1" X-UIDL: [QK!!$Po!!,IU!!8bJe9 > However, we should clarify whether or not a SignalSet that is *not* used > during completion should require its set_completion_status method to have > been called before get_signal is called. For non-completion-SignalSets, the > CompletionStatus may be irrelevant. It may be, but then again it may not. I think that it is up to the SignalSet to determine this, and not the "dumb" coordinator. Therefore, I think we should require set_completion_status to be called always, and simply leave it up to the SignalSet. > There are a few areas of the spec that seem to imply that all SignalSets > are completion SignalSets, which is not the case. For example in 2.2.1: > "Once the Activity has begun to complete (the ActivityCoordinator has > retrieved the first > Signal from a SignalSet), the status of the Activity is under the control > of the SignalSets, > and cannot be changed directly by any other entity." Agreed. I will ensure the text states that SignalSets can be used at other times. Mark. ---------------------------------------------- Dr. Mark Little (mark@arjuna.com) Transactions Architect, HP Arjuna Labs Phone +44 191 2064538 Fax +44 191 2064203 Importance: Normal Subject: Issue 4278: proposal To: ots-structs-ftf@omg.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: "Ian Robinson" Date: Wed, 18 Jul 2001 22:23:27 +0100 X-MIMETrack: Serialize by Router on d06ml007/06/M/IBM(Release 5.0.6 |December 14, 2000) at 19/07/2001 08:40:06 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-UIDL: _dJ!!V:Ie9%YPe9C7:e9 Proposal for resolution of 4278: I propose the following resolution to this issue. 1. Add a CompletionStatus parameter to the complete_activity and process_signal_set methods of the ActivityCoordinator interface. 2. Add a Status parameter to the set_completion_status method of the SignalSet interface. A SignalSet that is used both for completion and general broadcast may use this to determine whether or not the Activity is completing when it is asked to produce signals. Ian Robinson, Senior Software Engineer, WebSphere Development IBM UK Laboratories, Hursley MP 189 Tel (Ext) +44-1962-818626 (Int) 7-248626 ian_robinson@uk.ibm.com From: "Mark Little" To: "XOTS" Subject: FTF meeting summary Date: Wed, 18 Jul 2001 10:05:44 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Filter-Version: 2.1 (cheviot3) Content-Type: text/plain; charset="iso-8859-1" X-UIDL: *%D!!CL[d9H0jd9D]:!! Just a quick note to report on the meeting we had at Danvers. We managed to work through all of the issues that were reported prior to Danvers, though some have come up since. A brief summary of the issues we discussed, and the resolutions follows (the individuals who will write up the final proposed resolutions are also indicated). Proposal for 4278: add completionstatus parameter to complete_activity and process_signalset. [Ian Robinson to write up.]