Patent ID: 7349966

Claim:
A method for providing context-based dynamic policy assignment in a distributed processing environment, the method comprising: receiving a request at a first host system to execute a first application on behalf of a client system, said request including an application profile; based upon a profile ID and one or more task names associated with said application profile, selecting at least one policy for an application instance related to said request and mapping said one or more task names to a plurality of policies, wherein a least one of the plurality of policies is associated with said client system; associating said at least one policy to said application instance; executing said first application on behalf of said client system; and changing dynamically said at least one policy associated with said application instance based upon a task name change; forwarding said request to a second host system along with said application profile, wherein said request contains a request to access a second application stored on said second host system, and wherein a dynamic policy assignment system associates at least one policy with said second application instance based on a task name associated with said second application; and a web based programming language method including a run-as-task descriptor operable for determining a current task name value associated with a request to access an application; wherein said run-as-task descriptor values include: caller, operable for specifying a current task name as ‘run with caller's task name’; own, operable for specifying a current task name as ‘run with an application name of an application containing a current component’; and specified, operable for specifying an explicit task name to run as a current task name.