Bonjour.

J'ai un job à "debugger" et j'ai un problème auquel je ne trouve pas vraiment de solution

J'ai un job qui appele les methodes d'une routine (routine_calcul) dans un tJava.

Dans la zone de code du tJava il me voit bien ma routine et ses fonctions mais dans ma zone de code globale il me dit : "routine_calcul cannot be resolved".

Et dans ma routine que voici :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
// template routine Java
 
public class routine_calcul {
 
 
    public static void helloExample(String message) {
        if (message == null) {
            message = "World";
        }
        System.out.println("Hello " + message + " !");
    }
 
 
    public static void calcul_mois(Integer nb_years, Integer mois_debut, Integer montant, Float indice ) {
 
    	Integer i = 1;
        Integer mois_janvier=(nb_years*12+(12-mois_debut));
 
        while (i < 25)
        {
        Float montant_mois=new Float(0);
        Float douze = new Float(12);
        Float montant_base=montant/douze;
 
        Integer reste=(i+mois_janvier)%12;
 
	        if (reste==0)
	        {
 
	        }
	        else
	        {
	        Integer j=0;
	        	while (j<=nb_years)
	        	{
	        	montant_mois=montant_base+(j*indice);
	        	j++;
	        	}
	        }
 
        context.setProperty("m"+i+"",""+montant_mois);
        i++;
        }
 
    }
 
    public static Float passage_decimal(Float montant_mois) {
 
		DecimalFormat df = new DecimalFormat(); 
		df.setMaximumFractionDigits(2); 
		df.setMinimumFractionDigits(1);  
		df.setDecimalSeparatorAlwaysShown(false); 
 
		String indiceSyntecVal = df.format(montant_mois);
		if (indiceSyntecVal != null)
			indiceSyntecVal = indiceSyntecVal.replace(",", ".");
 
		montant_mois = Float.parseFloat(indiceSyntecVal); 
 
		return montant_mois;
 
    }
}
Il me souligne en rouge les context.set... en me disant "context cannot be resolved"

Que faire ??

Merci de vos futures réponses