发明名称 Automating workflow validation
摘要 A test document associated with a workflow definition is obtained, the test document including an input for an action of the workflow definition and an expected state for the workflow definition based on the input. The input is delivered for the action of a workflow instance, the workflow instance being an instance of the workflow definition executed by a workflow engine, and the action determined based upon a present state of the workflow instance. A next state of the workflow instance is obtained, where the next state is determined by the workflow engine based upon the present state, the action and the input. The next state of the workflow instance is compared to the expected state of the test document.
申请公布号 US9170821(B1) 申请公布日期 2015.10.27
申请号 US201213569537 申请日期 2012.08.08
申请人 Amazon Technologies, Inc. 发明人 Palaniappan Ramanathan;Shavit Gideon;Steele Alan M.;Johnston Simon K.
分类号 G06F9/44;G06Q10/06;G06F11/07 主分类号 G06F9/44
代理机构 Thomas Horstemeyer, LLP 代理人 Thomas Horstemeyer, LLP
主权项 1. A non-transitory computer-readable medium embodying a program executable in a computing device, the program comprising: code that acquires a test document associated with a workflow definition in response to receiving the workflow definition comprising a plurality of possible paths of execution, individual ones of the plurality of possible paths of execution comprising a sequence of a plurality of actions, the test document comprising a programmatic input source configured to provide an input for at least one of the plurality of actions of the workflow definition and an expected state for the workflow definition based at least on the input; code that places a workflow instance in a queue accessible to a workflow engine in the computing device, the workflow instance being an instance of the workflow definition; code that provides the input from the programmatic input source for the at least one of the plurality of actions of the workflow instance to the workflow engine managing the workflow instance, the at least one of the plurality of actions determined based at least in part upon a present state of the workflow instance and being performed by a remote application, the remote application interfacing with the workflow engine and returning a result, the input being determined upon execution of the at least one of the plurality of actions of the workflow instance; code that generates a comparison of a next state of the workflow instance to the expected state of the test document in response to receiving the next state of the workflow instance, the next state being based at least in part upon the present state, the at least one of the plurality of actions, the input, and the result, wherein the comparison comprises the result of the remote application; and code that restarts the workflow instance at a beginning of the workflow instance based at least in part on a difference in the comparison.
地址 Seattle WA US