Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM T356939: FAQ: New XAF HTML5/JavaScript mobile UI (CTP)]
                                    Does things like automatic invokation of workflow instances work with the mobile/dataservice solution? Say you have a workflow set up to trigger when a particular business object is created, will this work when the object is created from a mobile device?

                                • Anatol (DevExpress Support) 06.29.2016

                                  We need additional time to research this scenario. Please accept my apologies for the delay.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Hans,

                                I did some tests and did not find any issue in this configuration. When an object is created, the server application (MobileApplication) correctly creates data required for the Workflow Service in the database. If the Workflow Service is started, it processes this data and executes workflows. So, I do not expect any issue in this configuration.

                                • Hans Rutstrom 06.29.2016

                                  Thanks Anatol, that's great.

                                  I'm under the impression that the mobile application is only calling the dataservice. Does this mean that creating the data for the workflow is done by the dataservice, and that I could also create non XAF solutions utilizing this service and ultimately use the workflow functions in a seamless way?

                                • Anatol (DevExpress Support) 06.30.2016

                                  Not exactly. Some functionality, e.g., creating a database record required to start a workflow when a new object is created, is implemented on the application side by handling the IObjectSpace.Committing event. Otherwise, the Workflow Server would not be able to determine which record is new and which is not. So, there should be a server application that handles object creation and adds records to the XpoStartWorkflowRequest table. In the case of mobile applications, this task is performed by the MobileApplication object that is created on each request to a server to perform server-side operations with business objects.

                                • Hans Rutstrom 06.30.2016

                                  Thanks Anatol. I may have formulated myself a bit wrongly. Its not the OData MobileDataService itself that takes care of this. But I assume that if I make the REST calls (POST requests for new objects) to the dataservice.svc hosted by the mobile application project, this should work the same way as when the mobile app on the (handheld) device creates an object. I.e. the MobileApplication object will be created and work as in a mobile app request .

                                  Hopefully my assumption is correct here. What I'd like to do, is to have a non xaf (desktop) application that uses the dataservice to create objects (via REST) and where defined workflows will be triggered accordingly.

                                • Anatol (DevExpress Support) 07.01.2016

                                  Thank you for the clarification. We expect the same behavior in this scenario, so this should be doable.