Framework for modeling cancellation for process-centric programs
First Claim
1. A method for declaratively canceling an activity in a process-centric program, said method comprising:
- defining a state automaton for the activity, said state automaton including an executing state, a canceling state, and a closed state, said state automaton classifying an execution lifetime of the activity;
defining the activity to include the plurality of work items, said defined activity organizing the plurality of work items in an execution hierarchical structure, each of the work items including a method for executing a portion of the activity;
transitioning the plurality of work items from the executing state to the closed state, said closed state indicating a completion of executing the activity;
upon having one of the work items being transitioned to the closed state, transmitting a cancellation request to one or more of the work items currently in the executing state;
identifying one or more work items in the executing state as a function of the transmitted cancellation request and the execution hierarchical structure of the defined activity; and
canceling the execution lifetime of the activity by transitioning the one or more identified work items from the executing state to the canceling state.
2 Assignments
0 Petitions
Accused Products
Abstract
Declaratively canceling execution of an activity. A state automaton for an activity is defined, and the state automaton includes an executing state, a canceling state, and a closed state and classifies an execution lifetime of the activity. The activity includes work items and organizes the work items in an execution hierarchical structure. The work items are transitioned from the executing state to the closed state indicating a completion of executing the each work item of the activity. Upon having one of the work items being transitioned to the closed state, a cancellation request is transmitted to the work items currently in the executing state. The executing work items are identified as a function of the transmitted cancellation request and the execution hierarchical structure of the defined activity. The execution lifetime of the activity is canceled by transitioning the identified work items from the executing state to the canceling state.
124 Citations
20 Claims
-
1. A method for declaratively canceling an activity in a process-centric program, said method comprising:
-
defining a state automaton for the activity, said state automaton including an executing state, a canceling state, and a closed state, said state automaton classifying an execution lifetime of the activity;
defining the activity to include the plurality of work items, said defined activity organizing the plurality of work items in an execution hierarchical structure, each of the work items including a method for executing a portion of the activity;
transitioning the plurality of work items from the executing state to the closed state, said closed state indicating a completion of executing the activity;
upon having one of the work items being transitioned to the closed state, transmitting a cancellation request to one or more of the work items currently in the executing state;
identifying one or more work items in the executing state as a function of the transmitted cancellation request and the execution hierarchical structure of the defined activity; and
canceling the execution lifetime of the activity by transitioning the one or more identified work items from the executing state to the canceling state. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for declaratively canceling an activity in a process-centric program, said system comprising:
-
a memory area for storing data associated with the work items of the activity, said activity organizing the work items in an execution sequence;
a processor configured for executing computer-executable instructions for;
defining a state automaton for the activity, said state automaton including an executing state, a canceling state, and a closed state, said state automaton classifying an execution lifetime of the activity;
defining the activity to include the work items;
transitioning the work items from the executing state to the closed state, said closed state indicating a completion of executing the activity;
upon having one of the work items being transitioned to the closed state, transmitting a cancellation request to one or more of the work items currently in the executing state;
identifying one or more work items in the executing state as a function of the transmitted cancellation request and the execution sequence of the defined activity; and
canceling the execution lifetime of the activity by transitioning the one or more identified work items from the executing state to the canceling state. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. One or more computer-readable media having computer-executable components for declaratively canceling an activity in a process-centric program, said computer-executable components comprising:
-
a state machine for defining a state automaton for the activity, said state automaton including an executing state, a canceling state, and a closed state, said state automaton classifying an execution lifetime of the activity;
an activity component for defining the activity to include the plurality of work items, said defined activity organizing the plurality of work items in an execution sequence, each of the work items including a method for executing a portion of the activity;
a scheduler component for transitioning the work items from the executing state to the closed state, said closed state indicating a completion of executing the activity;
a message component, responsive to one of the work items being transitioned to the closed state, for transmitting a cancellation request to one or more of the work items currently in the executing state;
a cancellation handler for identifying one or more work items in the executing state as a function of the transmitted cancellation request and the execution sequence of the defined activity by enqueuing the identified work items to a queue; and
an execution component for canceling the execution lifetime of the activity by transitioning the one or more identified work items from the executing state to the canceling state. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification