Skip to content

Extended return type of invokeAction() #555

@danielpeintner

Description

@danielpeintner

Based on the discussion in eclipse-thingweb/node-wot#1279 two points/issues arose. One is the following.


At the moment the invokeAction(DOMString actionName, ...) call may return InteractionOutput only. Doing so makes it difficult to properly handle long running actions that MAY report first an "ActionStatus" object that allows for cancelling/querying action.

The idea/proposal is to enhance the return type. Something like

Promise<InteractionOutput | ActionStatus > invokeAction(DOMString actionName, ...)

We need to define what ActionStatus might be and what can be supported.

I wonder whether we can define/collect fist ideas how ActionStatus could look like and we could also start experimenting with it implementation- wise. Is it possible to "label" such a feature "Experimental" so that it is clear it might change?

Note: The EXI Profile has also an ActionStatus object and we should make it clear that it is something else. Maybe we might also use another name...

realtes to #335

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions