# Patent

## Title
Task management

## Abstract

Customized process plans are generated by weaving customizing process aspects into generic process plans. The aspects as stored contain markers and the system selects a generic process plan and searches it for the marker(s). If the marker is located, content from the relevant aspect is woven into the generic process plan at that point. Customized process plans can be produced for instance for particular customer types or service types and local resource availability can be taken into account.

## Background
FIELD OF THE INVENTION
The present invention relates to task management and particularly to the ordering and customisation thereof.
DESCRIPTION OF RELATED ART
Task management is often at least partially automated these days, particularly scheduling and resource allocation. However, the generation of appropriate task sequences, prior to scheduling and resource allocation, in the light of actual constraints and circumstances, remains a challenge.
It is known to apply automation to processes. For instance, the Integrated Supply Chain Management project (ISCM) by the University of Toronto focuses on the management of business processes as they are executed. For more information on this project, see website www.eil.utoronto.ca/iscm-descr.html.
BRIEF SUMMARY OF THE INVENTION
Embodiments of the present invention deal with generation and modification of task sequences and content, for potential use with resource management systems.
References below to “ASOPE” are references to embodiments of the present invention. “ASOPE” is an acronym for “Aspect Oriented Process Engineering” and is the name used for the principle underlying embodiments of the present invention.
Inventive aspects of embodiments of the present invention may be identified from the description and include the subject matter set out in the claims.



BRIEF DESCRIPTION OF THE DRAWINGS
A process generation system according to an embodiment of the present invention will now be described, by way of example only, with reference to the accompanying drawings in which:
FIG. 1 shows schematically the process generation system drawing on two repositories and a set of rules in generating a program;
FIG. 2 shows a set of objects, some of which share functionality;
FIG. 3 shows schematically the process generation system drawing on aspect repositories allocated to two interested parties in generating a program;
FIG. 4 shows listings for two programs generated by the process generation system, each appropriate to a different respective interested party;
FIG. 5 shows a target service problem management matrix mapped against customer types and service types;
FIG. 6 shows a generic process plan relevant to the target matrix of FIG. 5;
FIGS. 7 and 8 show intermediate matrices in generating a service problem management matrix designed to implement the target matrix of FIG. 5;
FIG. 9 shows a generated service problem management matrix using the system;
FIG. 10 shows iterative specialisation of a process as it passes through management domains;
FIG. 11 shows a use case diagram of the system demonstrating interaction with users; and
FIG. 12 is a class diagram of an embodiment of the process generation system.



DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS OF THE INVENTION
Processes can be of different types. A computer process, in particular a computer program, is compiled and run as logical instructions to be translated and acted on by a machine. Other processes are instantiated as physical systems involving people. In particular, there are inputs and outputs to allow decision making, optimisation and customisation by users which will affect the process as performed to produce for instance local, individual and/or time based variations. It is these other processes which ASOPE is particularly adapted to generate and support.
ASOPE decomposes processes into two elements, Generic Process Patterns (GPPs) which are the fundamental sequences of steps which are used to achieve a goal, and Process Aspects which contain context specific process steps together with instructions for their composition with a particular GPP. In this way it is possible to use ASOPE to synthesise wholly new processes that achieve a goal but, with respect to one another, utilise extra or alternative process steps for example to achieve unrelated sub-goals or prevent the system from reaching a particular state. An example of a GPP would be a plan to install customer premises equipment. Process Aspect examples would be access checks for premises related to an individual, or checking that the site could support physical diversity for a corporate working in the finance industry. GPPs are decontextualised, generalised plans and Process Aspects provide context, resource and participant dependent exceptions and extensions.
A primary objective of decomposing processes in this way is to construct a generative representation that facilitates the reuse of process elements developed in the past, and “must do” elements derived from local working practice or policy decisions. A secondary objective is to develop a representation that is capable of being structured in a way that reflects the real structure of the organisation which generates and maintains the knowledge.
The use of process aspects which are first class objects within ASOPE enables the development of a process design meta-process that allows information on the current context of the business process, that will affect its structure, to be woven into it at runtime. Also use of a cross cutting abstraction like aspect-orientation has an impact on the taxonomy of process objects that an ASOPE style system would implement.
Object Orientation, as used in ASOPE, is the idea that modules in programs should contain instructions and data definitions that relate to one logical abstraction in the domain of the program. Each module should represent the data and operations that concern just one thing or conceptual entity that the Programmer, Designer or Analyst has described. Object Orientated modules are called classes, because they define a class of objects.
For example if one were building a program that ran a company pay roll using Object Orientated techniques you would write a class for the companies employees, a class for tax information and some business logic classes representing the way that the system is to make payments. Each employee would be represented within the system by an object instance which would be a realisation of the appropriate class, so the tax office would be represented by just one instance of the tax class.
The power of the Object Orientated abstraction as far as programming is concerned is the hierarchical typing of the classes which enables the programmer to generalise about types of objects in the system. For example if the company wishes to employ a student trainee who is exempt from taxation it would be possible to write a class defining non-taxable-employees which would inherit all the properties of a normal employee. However, this class would include different code to be used to calculate the final net pay of the employee, this time without tax. The advantage of this is that if the normal employee class is changed in other ways, improving holiday allowances for example, then the inheritance relationship between the normal employee class and the non-taxable-employee class will ensure that the changes will be propagated to it as well. These inheritance relationships can be used to greatly simplify the conceptual structures of the programs thus making them easier to develop, and sometimes easier to maintain.
Although Object Orientated abstractions have been extremely successful in reducing the whole life cost of software systems, when a larger more complex implementation has been attempted drawbacks with the Object Orientated abstraction have become apparent. Problems include:
Object schizophrenia. In order to handle the complex behavior of a particular logical entity in a system it is often necessary to decompose the entity into many smaller more easily written classes. The entity is intended to be one class; but, instead, it is comprised of multiple classes, each with its own identity once instantiated into an object. While this tactic allows the designer or programmer to clearly conceptualize the implementation as they construct it, and helps them to manage the detail of the implementation, it makes the task of an outsider attempting to comprehend the system and the function of its parts far harder. This can lead to many symptoms of a bad program, including broken delegation and broken assumptions.
Composition and interactions constraints (and inconsistencies). Object Orientated systems imposes a number of constraints on the way that objects can be composed and can interact. These constraints are largely arbitrary and are not standard across all Object Orientated languages and implementations. For example in C++ the concept of a friend function allows a more sophisticated model of interaction between objects to be defined than is possible in Java. Inconsistencies arise because conflicts can arise from different design principles which one wishes to use to construct a program. Videira Lopez (1997) points out that if one were to make variables of a base class available to a sub-class then the sub-classes can make policy decisions based on the objects state; but this violates the referential integrity of the base class and is discouraged in frequently cited design guidelines.
Interface bloat or, alternatively, downcasting. In order to maintain the Object
Orientated abstraction it is often necessary to implement classes that have several different roles for different elements of the system. In the payroll system discussed so far employees would have one relationship to an object with responsibility for calculating a pay bill, and another relationship to an object with responsibility for calculating pension contributions (they might implement a pensioner interface for example). These multiple relationships and roles force the programmer to implement several interfaces, or sets of function calls in significant objects of the system which increases their size, and muddies their function. Downcasting is an alternative strategy which enables a programmer to handle this kind of problem by instructing the program compiler to regard an object as being of different types at different points in the programs thread of control. However downcasting is a dangerous practice for two reasons. Firstly the semantics of a down cast are different between various Object Orientated languages (for example in C++ a downcast leads the compiler to execute the method of the class that the object has been downcast to, but in Java the method will be the actual method implemented for the objects “real” class). Secondly, down casts violate the type checking support that is one of the major benefits of Object Orientated technology.
Cross Cutting. Behaviors that are required throughout an entire system, such as particular safety protocols or quality of service assurance procedures, often need to be re-implemented in multiple places if they are to be integrated with a Object Orientated program. This kind of required behavior is said to cross cut the objects. Cross cutting leads to tangling (Kiczals et al 1997). A tangled program is one in which concerns that should be encapsulated together are scattered across a number of modules. Tangled code is difficult to locate and change during maintenance.
These problems have encouraged Software Engineers to develop other abstractions that are better fitted to the kind of encapsulations that are required for the development and maintenance of large and complicated computer systems in environments where resource constraints and time to market pressures are paramount.
Subject Orientated Programming (Osher & Harrison 1992) addresses the fact that different entities view the same object from different perspectives. These perspectives are not filtered views; some properties and behavior only exist because of the perspective. Subject Oriented Programming (SOP) provides extra language features above and beyond Object Oriented Programming to support subject decomposition, implementation, and re-composition. In SOP, a subject is defined as a collection of classes or class fragments that models its domain or area in its own, subjective way.
Although Subject Oriented Programming appears to be a considerable advance on Object orientated programming, there is another approach, aspect oriented programming, that provides a more generic method of integrating cross cutting behavior than SOP.
Aspect oriented programming also adds extra language features to object oriented programming. Aspects cut across or cross cut the units of a system's functional decomposition (objects). Examples provided in the literature are synchronization, exception handling, monitoring and auditing, quality of service, and many others.
Referring to FIG. 1, research has produced language constructs and compilers (called Aspect Weavers 100) that can interleave or weave component definitions 105 (objects) and aspect definitions 110 (programs) appropriately to formulate a unified and executable program 115.
To implement the embodiment of the present invention described below, the Java based AOP environment (AspectJTM) from Xerox PARC and a known AOP language are used. Information on these is available for instance published by Videira Lopes, C. & Kiczales, G in “Recent Developments in AspectJTM”, in ECObject OrientatedP'98 Workshop Reader, Springer-Verlag LNCS 1543.
Referring to FIG. 2, the genesis of aspects may be more clearly understood if one considers five objects, Obj1-Obj5, involved in three activities, [A], [B], and [C]. If the objects are instances of five different classes, the functionality required to carry out the activities cross cuts method definitions (potentially many) in five separate classes.
Aspects are first class objects, which are woven into a program at compile time, but with their own independent state. As is implied by their status as first class objects, an aspect can be woven with several different objects within a program and the state of the aspect is shared and updated by all of those objects that are woven with it.
Processes are sometimes required to be flexible and dynamic. However some processes remain cumbersome and difficult both to construct and comprehend. This is because of the numerous “special cases”, exceptions and decision points that must be included in a realistic process implemented by a large organisation that sets the needs of its customers as a priority. For example a process developed to provide International Private Circuits for customers of BT (the applicant) contains sixteen decision points on the top level process; sixteen top level process tasks and each of the top level processes contain numerous decision points and exceptions themselves. Research techniques, such as agents in business processes, solve numerous problems in the provisioning and enactment stages of processes but the flexible creation of processes, given the needs of the participants (consumer, employee, regulator, etc), has not been developed in the same way.
ASOPE considers the construction of specialised processes from generic cores and context dependent elements. New process steps or different process sequences can be implemented as new policies and instructions are disseminated across a domain. The essence of the process is abstracted from the detail of customer preferences, local working agreements and management instructions and then reused for different customers, workplaces and management domains.
Referring to FIG. 3, in order to abstract the core of the process from the context or customer dependent elements that must be considered, the process is defined in terms of two sets of components:
Generic Process Patterns 300: partially ordered processes, which consist of process steps, which are obligatory for a particular goal to be achieved. These are an ordered list of the conditions that must be satisfied for the goal to be successful; and
Process Aspects 305: process steps that can be included in a business process in order to customise it for execution by a particular resource.
A generic process pattern 300, a core process that must be executed in order to achieve a type of goal, comprises a set of processes that has been loaded to the system for instance because they are publicly advocated for use by management and subscribed to by operational units.
The process aspects 305 are then context dependent process steps that should be carried out in order to achieve a particular goal for instance allocated to a particular team, in a particular place for a particular customer. Process participants are provided with interfaces 310 in order that they can load their particular process aspects 305 to be woven by the aspect weaver 320 into the generic process 300 to create a specialised ordered process 315 for execution.
The process aspects 305 used are a subset of an overall available set of aspects and the process context determines their use. The aspect weaver 320 does not just append process steps onto another process. It merges aspects 305 with the GPP 300 according to weaving rules instantiated by the aspect weaver 320 and weave instructions that are coded into the aspects 305 themselves.
Aspects 305 can introduce new process steps, and they can advise existing process steps. An advise weave appends new process instructions into a particular place in the process. The process position that an aspect's advise weave is to be woven at is determined by the weaver 320 matching patterns defined in the aspect 305 to a process step name in the GPP 300 with wild cards matching to the preconditions and post conditions of the process step.
The processes are arranged hierarchically using a frame based Object Orientated organisation, allowing this kind of match and weave process to be used to merge process sequences together.
In the following are described two examples of how this can be applied to process activities.
EXAMPLE 1
Customised Processes for Telephone Installation
Many commercial organisations have a core activity that concerns the installation or servicing of equipment at a customer's site or domicile. For example: gas, water and electricity utilities must install, service and read meters in order to bill their customers.
Consider the example of installing a phone, a business process that has some significance for BT. A simple set of core generic process steps are required for all customers, no matter where they are in the country, or which engineer does the installation. However, some steps will be different from customer to customer. A corporate customer may require adherence to a previously agreed contract, breach of which may be unacceptable. Providing a service in a rural area may involve more travel time, but it will be unnecessary to book a parking bay for the engineer's van, however in the City of London parking space may need to be pre-arranged.
In order to apply ASOPE to the process of installing a telephone it is necessary to define the participants and the generic process of installation (the GPP 300) to be used. For the purposes of this example two different (simplified) customer types are considered.
Customer type 1: Customer's time is paramount.
Customer type 2: Customer's security is paramount.
While the goal of installing a telephone is identical for both of these customer types, they are qualitatively very different. Customer type 1 will place a premium on appointments being kept and probably can supply a mobile phone number that allows them to be contacted a short time before the technician arrives to carry out the work. Customer type 2 will be available for the visit of the technician and will require a special identification procedure to reassure them that the technician is genuine.
A single process can be used to achieve the goal of installation for both groups of customer. However, by localising knowledge of extra process steps each customer requires in a process aspect 305, the process can be untangled to provide a customised process for each of the customer types.
An aspect 305 for each customer type to be considered is defined. An aspect hierarchy could be created that can be used to inherit behaviour, but for this example the two customer aspects are considered in isolation.













aspect CustomerType1 extends Customer(
public void acquireJobDetails( ) {


int customerPhoneNumber = 0;


 advise
 System.out.println(“Acquire


 *installPhone.bookVisit(*) {
 appropriate job information”);}


 after {
public void bookVisit( ) {


 System.out.println(“Acquire customers


 mobile contact number”);
 System.out.println(“Book visit time


 customerPhoneNumber = 12345678;
 and address, allocate engineer”); ; }


   }}
public void waitUntilVisit( ) {


 advise


  *installPhone.installEquipment(*) {
 System.out.println(“Wait for visit


before ( System.out.println(“Verify
 time”); }


appointment with customer number = “ +


String.valueOf
public void installEquipment( ) {


(thisAspect.customerPhoneNumber)); }}}
 System.out.println(“Carry out



 appropriate installation work”);}



public void billCustomer( ) {


aspect CustomerType2 extends Customer{


 advise *installPhone.installEquipment
 System.out.println(“Send bill to


 (*) {
 customer”); }


  before (System.out.println(“Verify


   ode word with customer”); }}
public void planPattern ( ) {



  acquireJobDetails( );


advise * installPhone.bookVisit(*){
  bookVisit( );


 after (System.out.println(“Supply
  waitUntilVisit( );


  code word to customer”); }}
  installEquipnent( );



  billCustomer( ); }









In the above, the left hand side shows instantiated aspects in relation to CustomerType1 and CustomerType2 and the right hand side shows a generic process pattern for phone installation to be used as the basis for the process. The aspects are instantiated, as is the process pattern, in an Aspect-JTM module. Each customer's process aspect is then added to the process pattern in turn to produce two customised processes, shown in FIG. 4.
It can be seen that the aspect in relation to CustomerType1 contains sufficient information for the aspect weaver 320 to locate where and how to modify the GPP 300 for phone installation shown on the right hand side. In particular, it tells the aspect weaver 320 to extend the GPP 300 by adding a print line “Acquire customers mobile contact number” at the end of “bookVisit”, to add the print line “Verify appointment with customer number . . . ” before “installEquipment”, and it instantiates the customer's fixed network telephone number 12345678.
With respect to the aspect in relation to CustomerType2, this one tells the aspect weaver 320 to extend the GPP 300 by adding the print line “Verify code word with customer” before “installEquipment”.
Even the simple examples given above show the need for aspect instances. Customer Type 2 requires that a code word is set for each appointment. It is appropriate to associate this information with the customer, and an aspect instance is an appropriate way of handling this.
The following section describes another example of how a process can be decomposed into generic process plans and process aspects. This example describes the problem of structuring a service provision process that is dependent on both the type of customer buying the service and the type of service being sold.
Providing and managing communications services is a key activity for communications providers such as the applicant. A large portfolio of services of various types can exist, with each customer requiring a different subset of provision in order to conduct their business. In order to provide a service it is necessary to provide methods that are appropriate for its management and maintenance at a level acceptable to the customer. Unfortunately customer requirements and resources vary considerably. For instance, it is inappropriate to provide a “five nines” (99.999%) availability of a service at the cost of thousands of pounds each year for an individual. The individual can accept a much higher level of unavailability and cannot afford the charge for the service with this level of maintenance. On the other hand, a corporate customer may view thousands of pounds a year as a small price to pay for high availability of a business critical service such as voice mail. Also, it may be against the service provider's interest to provide a lower level of availability for a business critical service because of the impression of unreliability that it would create with a valuable corporate customer.
FIG. 5 shows a matrix of various problem management strategies that might need to be applied to service types for differing customers. The matrix contains twelve elements representing the requirements for problem management given a particular type of service for a particular customer. Each of the entries in the matrix indicates a type of problem management that is applicable to the context mapped by the service type and the customer type. There are six different problem management strategies that might be adopted.
Replace indicates that a service provider, acting as a broker between the network company providing the network infrastructure for the service and the customer, will replace the service rather than attempt to discover the problem and fix it.
C-Enabled is a customer enabled problem management strategy, where the customer is provided with a suite of diagnostic and trouble shooting tools which enable them to manage problems as they arise in the service.
Servicing is for the service provider to attempt to avoid faults in the service to prevent its failure, in much the same way that a car would be serviced to prevent a breakdown.
PM-enabled (not shown) posits the existence of self diagnostic abilities for the service that allow it to predict and report impending failures that will allow preventative action to be taken (the PM in the name is taken from Photocopier Model, a reference to the ability of modern office automation systems to phone faults through to their suppliers).
Open Testing provides the customer with the ability to test for faults on the service, but requires that the network connector provides the problem solving activity.
3rd party relies on the existence of a specialised 3rd party rescue service, similar to breakdown and recovery organisations that motorists join and use if their cars fail.
The goal of the GPP here is to be able to prepare a quote for providing a particular type of service to a particular type of customer taking into account the amount of problem management that it is appropriate for the customer to do themselves. It is possible to achieve the goal by using an aspect orientated representation to fold the matrix into its axis and represent the problem management strategies as process aspects representing the type of service type and the type of customer for that service. These can then be woven together, with a generic process pattern representing the process (shown diagrammatically in FIG. 6) to generate service provision processes tailored to the customer, and to the service that is to be provided.
In order to be able to do this, the elements need to be defined that will be used as knowledge stores. Referring to FIG. 5, the aspects can be identified that will be required to store the knowledge to customise the business process. There are three types of customer 500 (Corporate, SME and Individual) and four types of service 505 (niche-dispose, niche-value, mass-dispose, mass-value). All of the process aspects 500,505 (the service types and the customer types) contain advise weaves (equivalent to that shown above for the telephone installation example) which introduce extra process information to the generic process plan of FIG. 6 at the “produce estimate” step 600.
Referring to FIG. 7, by using just the customer type aspects 500 to contextualize the process, a matrix is produced (selecting the most repeated matrix elements for each of the columns).
Alternatively, referring to FIG. 8, by using just the service type aspects 505, a different matrix can be produced. The aspect information here was generated by selecting the most commonly shown strategies for problem management in the matrix co-ordinates as shown in FIG. 5, selected in order to generate a best fit to the original matrix. However, the niche-value and mass dispose categories both contained a different strategy for each customer type. This forced an arbitrary choice for one of the strategies. It is preferable to use domain knowledge to determine which strategy would be best if applied for all customers.
Both FIGS. 7 and 8 show that weaving across one axis of the problem management matrix can be used to specialise a generic process to some degree. However, in order to regenerate the original matrix shown in FIG. 5 both sets of aspects need to be woven into the plan. In order to do this, a set of precedence relationships is needed which can be defined against the aspects, which will force the weaver to make the correct decision as to which strategy to choose. Alternatively if the aspect weaver operated according to some known weave ordering rules the same effect could be achieved by determining the correct order of weave for the various aspect categories. Effectively an ordered weave enables implementation of the matrix shown in FIG. 9.
This weave can be achieved with the following algorithm:

    
    
        Using service-type-aspects introduce process steps for estimatingReplaceCost for the niche-dispose type, estimateOpenTestingCost for the nicheValue service type, estimateReplaceCost for the mass-dispose service type and estimateServicingCost for the mass-value type.
        Use advise weaves to place calls to these process steps into the generic process pattern step
        Introduce a process step for estimateServicingCost for the corporate customer type.
        Use an advise weave to the estimateReplaceCost process step (introduced by the previous weave) to add the estimateServicingCost step to the process1. 1 It should be noted that using the Aspect-J weaver it is necessary to also add a return( ) statement to force the process step to finish execution at this point.
        Introduce a process step for estimateCustomerEnabledCost in the corporate customer type.
        Use an advise weave to the estimateOpenTesting step introduced for the nicheValue service type to force this step into the specialised process.
        Introduce a process step for estimateCustomerEnabledCost in the individual customer type.
        Use an advise weave to the estimateReplaceCost to force this step into the process.
    
    


This algorithm is sufficient to generate the matrix of problem management strategies appropriate for the particular customer using the particular service as shown in FIG. 5 except that the corporate-mass-dispose co-ordinate of the matrix is wrongly populated with a servicing policy. This is because there is a conflict between the exceptional case of replacing an estimateReplaceCost step for a corporate with a estimateServicingCost and the exceptional case of replacing an estimateReplaceCost step for a corporate with a estimate3rdPartyCost. The price of using this method is the incorrect entry in the matrix, but the benefit is that it has been possible to generate the twelve elements of the matrix from seven process aspects.
In the following section, the architecture of a process knowledge management system that would utilise ASOPE as its central component is described. The architecture is examined from two perspectives. The perspective of the organisational hierarchy of the system shows the logical structure of a Process Aspect repository. The business role perspective shows the way in which the system would interact with the participants in the business process in order to be of use.
Organisational Hierarchy Perspective
The assumption underlying this perspective on the architecture is that the participants in the meta process of constructing and managing the enactment of the business process belong to particular management domains which are controlled by managers with limited, but real and valuable, autonomy. This enables the participants to determine which resources will be utilised to achieve a goal on the basis of the impact that their use will have on the characteristics of the process. FIG. 10 shows the process elements specialised by an ordinate layer 1000 being passed to a sub-ordinate layer 1005 to incorporate its process knowledge.
During each weave a process aspect can customise the process in two ways:
Process addition: A process step is added either before or after a previously defined step.
Process redefinition: A process step is redefined to make it relevant to the business process context.
User Role Perspective
FIG. 11 shows a model of how an ASOPE system would be used within a commercial organisation. The model is shown as a UML use case diagram in which users of the process are shown as stick figures 1100 and use-cases (in this case activities in the process construction meta-process) are shown as ovals 1105. Notes 1110 are given on the interaction connections between the use cases 1105 and the users 1100. An operational support system 1115 is shown as a “class”.
FIG. 12 shows a class diagram of components for building an embodiment of the present invention.
Referring to both FIGS. 11 and 12, the user interacts with the system, particularly to enter information, in three ways:
1) As a Goal Setter 1120 by setting a goal on the system which results in the automatic selection of a GPP to achieve the goal and the selection of resources to provision the GPP.
2) As a Process Writer 1100 by describing processes to the system in terms of GPPs and Aspects, via the Process Editing GUI 1215
3) As a policy maker 1125 describing policies that are integrated with the aspects via the policy editing GUI 1225.
The data stores (not shown) for holding entered information are the GPP library and an aspect library. The GPP library contains a set of descriptions of how a business goal can be achieved in terms of the sequence of activities that must be undertaken regardless of the context of the goal or the resources uses to achieve it. The “index” for GPPs would be the goals that they achieve. The Aspect Library is where process aspects will be stored. These aspects are the context and resource specific activities and are indexed on the resource or context that utilizes them.
FIG. 12 shows a class diagram of the components that might be deployed in implementing an embodiment of the present invention. An important point is that processes for construction are stored in two orthogonal hierarchical repositories, the aspect manager 1200 and the GPP manager 1205. Information is drawn from these and recombined to create processes that achieve goals specified via a goal setting interface 1210, tailored according to actual resource limitations monitored by a resource manager 1235.
The important point about FIG. 12 is that the processes are stored in two orthogonal hierarchical repositories (the Aspect Manager 1200 and the GPP manager 1205) from which information is drawn and recombined to create processes to achieve the desired goals. The advantages of this are:

    1) Abstraction and representation of the process as a GPP which can be used as a template in multiple contexts.
    2) The weaving process can be used to tailor business processes to meet individual goals.
    3) The process aspects can be used to implement process steps that meet process constraints that are separate from the business goal, and are the concern of the local management.


The ASOPE approach is dynamic and adaptive in that the cycle of the process knowledge through the system results in the iterative updating and maintenance of the knowledge base.
It should be noted that, in the above, an implementation trick is used (the insertion of a return( ) statement in the generated program specifying the process) to produce a substitution effect in the weaving. It is believed that a substitution, or filtering weave, is necessary in order for the Aspect Orientated abstraction to be really useful both for process representation and software development. Composition filters have been used to develop Aspect Orientated systems that directly implement deletion mechanisms which are not implemented in Aspect-JTM (see M. Aksit and B. Tekinerdogan, Solving the Modeling Problems of Object-Oriented Languages by Composing Multiple Aspects Using Composition Filters, AOP'98 workshop position paper, 1998) and there is no obstacle to the implementation of more weave instructions.
Another characteristic of systems such as that described is the conceptual difficulty involved in the design of the weave orderings, and the correct decomposition and encapsulation of the process elements into generic process patterns and process aspects. This applies to any object orientated or frame based representation, because the essential answer to the question of “why is that the correct object model” is simply “we don't know, but it is”. There are no hard rules for the development of object models, simply best practices and rules of thumb which apply only to the particular circumstances of the program and programmer who are structuring a particular model. Aspect Orientation however offers another tool which can be used to simplify the organisation of knowledge.
Variations envisaged in embodiments of the present invention include the provision of graphical support and the development of tools to build, maintain and use process repositories.

## Claims

1. A method of generating a process plan comprising:
i) storing at least one generic process pattern, wherein the at least one generic process pattern defines a core process that must be executed in order to achieve a type of goal, wherein the core process is a partially ordered process which includes process steps, which are obligatory to achieve the type of goal;
ii) storing at least one process aspect containing a predetermined pattern, wherein the at least one process aspect defines at least one context dependent process step that is carried out in order to achieve a particular goal;
iii) searching said at least one generic process pattern for the predetermined pattern contained by the at least one process aspect,
iv) on detection of the predetermined pattern, inserting content from said at least one process aspect into the generic process pattern to generate a process plan and
v) outputting the generated process plan,
wherein an instruction coded into each of the at least one process aspect determines how content is merged from the process aspect into the generic process pattern at runtime of the generic process pattern and said content inserted from said at least one process aspect introduces a new process step into the generic process pattern.

2. A method according to claim 1 further comprising the steps of receiving for storage the at least one generic process pattern and receiving for storage the at least one process aspect.

3. A method according to claim 1 wherein each stored generic process pattern is indexed in accordance with a goal to be achieved by the plan and the method further comprises:
vi) receiving a goal input, and
vii) selecting a generic process pattern for searching, said selection being in accordance with the received goal input.

4. A method according to claim 1 wherein the at least one process aspect comprises resource information, identifying one or more resources to support a process step in a generated process plan.

5. A method according to claim 4 wherein each stored process aspect comprising resource information is indexed in accordance with one or more relevant resources.

6. A method according to claim 1 wherein content inserted from the at least one process aspect comprises data.

7. A method according to claim 1 wherein the at least one process aspect comprises context specific method steps or data and is indexed for storage according to the relevant context.

8. A method according to claim 7 wherein the context for the at least one process aspect is service type.

9. A method according to claim 7 wherein the context for the at least one process aspect is customer type.

10. A method as in claim 1 wherein the content introduces new process steps with respect to the generic process pattern.

11. A method as in claim 1 wherein the content advises existing process steps of the generic process pattern.

12. A method as in claim 1, wherein instructions respectively coded into process aspects determine a sequence in which said process aspects are merged into said generic process pattern.

13. A method of generating a process plan comprising:
i) storing at least one generic process pattern, wherein the at least one generic process pattern defines a core process that must be executed in order to achieve a type of goal, wherein the core process is a partially ordered process which includes process steps, which are obligatory to achieve the type of goal;
ii) storing at least one process aspect containing a predetermined pattern, wherein the at least one process aspect defines at least one context dependent process step that is carried out in order to achieve a particular goal;
iii) searching said at least one generic process pattern for the predetermined pattern contained by the at least one process aspect,
iv) on detection of the predetermined pattern inserting content from said at least one process aspect into the generic process pattern to generate a process plan and
v) outputting the generated process plan,
wherein an instruction coded into each of the at least one process aspect determines how content is merged from the process aspect into the generic process pattern at runtime of the generic process pattern and said content inserted from said at least one process aspect advises an existing process step in said generic process pattern.

14. Apparatus for use in generating a process plan, the apparatus comprising:
i) a generic process pattern storage device that stores at least one generic process pattern, wherein the at least one generic process pattern defines a core process that must be executed in order to achieve a type of goal, wherein the core process is a partially ordered process which includes process steps, which are obligatory to achieve the type of goal,
ii) a process aspect storage device that stores at least one process aspect containing a predetermined pattern, wherein the at least one process aspect defines at least one context dependent process step that is carried out in order to achieve a particular goal,
iii) means for searching the at least one generic process pattern for the at least one predetermined pattern contained in the at least one process aspect,
iv) means for inserting content from said at least one process aspect into the generic process pattern on detection of the predetermined pattern so as to generate a process plan, and
v) an output for generated process plans,
wherein an instruction coded into each of the at least one process aspect determines how content is merged from the process aspect into the generic process pattern at runtime of the generic process pattern and said content inserted from said at least one process aspect introduces a new process step into the generic process pattern.

15. An apparatus according to claim 14 further comprising means for receiving for storage the at least one generic process pattern and receiving for storage the at least one process aspect.

16. An apparatus according to claim 14 wherein each stored generic process pattern is indexed in accordance with a goal to be achieved by the plan and the apparatus further comprises:
vi) means for receiving a goal input, and
vii) means for selecting a generic process pattern for searching, said selection being in accordance with the received goal input.

17. An apparatus according to claim 14 wherein the at least one process aspect comprises resource information, identifying one or more resources to support a process step in a generated process plan.

18. An apparatus according to claim 17 wherein each stored process aspect comprising resource information is indexed in accordance with one or more relevant resources.

19. An apparatus according to claim 14 wherein content inserted from the at least one process aspect comprises data.

20. An apparatus according to claim 14 wherein the at least one process aspect comprises context specific method steps or data and is indexed for storage according to the relevant context.

21. An apparatus according to claim 20 wherein the context for the at least one process aspect is service type.

22. An apparatus according to claim 20 wherein the context for the at least one process aspect is customer type.

23. An apparatus according to claim 20, wherein the context for the at least one process aspect is customer type.

24. An apparatus as in claim 14 wherein the content introduces new process steps with respect to the generic process pattern.

25. An apparatus as in claim 14 wherein the content advises existing process steps of the generic process pattern.

26. An apparatus as in claim 14, wherein instructions respectively coded into process determine a sequence in which said process aspects are merged into said generic process pattern.

27. Apparatus for use in generating a process plan, the apparatus comprising:
i) a generic process pattern storage device that stores at least one generic process pattern, wherein the at least one generic process pattern defines a core process that must be executed in order to achieve a type of goal, wherein the core process is a partially ordered process which includes process steps, which are obligatory to achieve the type of goal,
ii) a process aspect storage device that stores at least one process aspect containing a predetermined pattern, wherein the at least one process aspect defines at least one context dependent process step that is carried out in order to achieve a particular goal,
iii) means for searching the at least one generic process pattern for the at least one predetermined pattern contained in the at least one process aspect,
iv) means for inserting content from said at least one process aspect into the generic process pattern on detection of the predetermined pattern so as to generate a process plan, and
v) an output for generated process plans,
wherein an instruction coded into each of the at least one process aspect determines how content is merged from the process aspect into the generic process pattern at runtime of the generic process pattern and said content inserted from said at least one process aspect advises an existing process step in said generic process pattern.