[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3712.0. "how to implement a WITH qual func for SET" by MICROW::LANG () Wed Sep 09 1992 22:11

    
    	We would like to have the following feature, but given
    	that it does not exist, I wanted to get some suggestions
    	on alternative implementations:
    
    	 SET QUEUE <queue-name>  HOLD=FALSE, WITH TASK=<task-name> AND
    			TASK_GROUP=<task-group-name>)
    	 SET QUEUE <queue-name>  HOLD=FALSE, WITH TASK=<task-name> 
    	 SET QUEUE <queue-name>  HOLD=FALSE, WITH TASK_GROUP=<task-group-name>)
    	
    	Any ideas?
    
    			thanks,  Bonnie
    
T.RTitleUserPersonal
Name
DateLines
3712.1Try using the Attrib data typeTAEC::LAVILLATThu Sep 10 1992 07:2143
Re .0:

There is no easy way, but you can try defining an ACTION verb called 'SET_WITH'
with two arguments :

	1/ New values : data type SET OF Attrib into which you will pass
	the new values under Attrib format (syntax is a bit heavy)

	2/ Expression : data type SET OF Attrib into which you will pass
	the expression to be validated (assuming you want only to test 
	equality).

	Doing this you can within your MM decode the parameters and issue
	the necessary SHOW an SET mcc_calls (easier to say than to 
	implement !).

	And so your 
>    
>         SET QUEUE <queue-name>  HOLD=FALSE, WITH TASK=<task-name> AND
>                        TASK_GROUP=<task-group-name>)
>         SET QUEUE <queue-name>  HOLD=FALSE, WITH TASK=<task-name> 
>         SET QUEUE <queue-name>  HOLD=FALSE, WITH TASK_GROUP=<task-group-name>)
>        

	will become :

	 SET_WITH QUEUE  <queue-name> -
		New values = ( ( ( QUEUE ) , HOLD ) , false ) )
		Expression = ( ( ( QUEUE ) , TASK ) , <task-name> ) ,
			       ( ( QUEUE ) , TASK_GROUP ) , <task-group-name>))
	        
	 SET_WITH QUEUE  <queue-name> -
		New values = ( ( ( QUEUE ) , HOLD ) , false ) )
		Expression = ( ( ( QUEUE ) , TASK ) , <task-name> ) )
	        
	 SET_WITH QUEUE  <queue-name> -
		New values = ( ( ( QUEUE ) , HOLD ) , false ) )
		Expression = ( ( ( QUEUE ) , TASK_GROUP ) , <task-group-name>))

Good luck and regards.

Pierre.