Asynchronous Operations: Assessment Test Questions
- (Question pool 7) What method should you pass to the PXLongOperation.StartOperation() method?
- A method that should be executed when the asynchronous operation is complete
- A method that should be executed if an exception is thrown
- A method that should be executed asynchronously
- (Question pool 8) Select the correct statement about the delegate method that is
passed to the PXLongOperation.StartOperation() method.
- For the correct asynchronous execution of the method, you should use the members of the current graph inside the delegate method.
- The use of the members of the current graph inside the delegate method is forbidden because this would lead to synchronous execution of the method.
- The usage of the members of the current graph inside the delegate method does not affect how the method gets executed.
- (Question pool 9) What method should you use to instantiate a graph from code (where T represents the graph's type)?
- PXGraph.CreateInstance<T>()
- new T()
- Create.T()
- Init.T()
- (Question pool 9) What is the expected result of using the new T() graph constructor (where T represents the graph's type) to instantiate a graph from code?
- The extensions or overrides of the graph will be initialized successfully.
- The extensions or overrides of the graph will not be initialized successfully.
- The code will fail to compile.
- The code will throw an exception at runtime.
- (Question pool 10) Select all correct statements about the PXLongOperation.StartOperation() method.
- Within the method that you pass to StartOperation(), you call the method that you want to be run asynchronously.
- The StartOperation() method creates a separate thread and executes the specified delegate asynchronously on this thread.
- The method passed into StartOperation() matches the PXToggleAsyncDelegate() delegate type.
- The StartOperation() method can be invoked only in a graph event handler.
- (Question pool 10) Select all correct statements about the PXLongOperation.StartOperation() method.
- This method executes code on a separate thread.
- You should use this method to configure data access class (DAC) attributes.
- This method can be invoked only in an action.
- This method can be invoked only in a graph event handler.
- (Question pool 10) Select all of the things that you should do to initiate an asynchronous operation in an action.
- Call the PXLongOperation.StartOperation() method
- Pass a delegate of the PXToggleAsyncDelegate type
- Stop the asynchronous operation manually