Discussion

Agent not working?

Hi Guys,

I have a method that will just update a status of a certain work objet. When i run the method it successfuly update the status of the work object. Now, I want this method to be called by an agent and do the task.But it doesn't work.

Here is the details of my agent instance/rule:

- AgentName: MyAssignedAgentName
- Pattern : Periodic
- Interval : 6
- Mode : Legacy
- Enabled? : disabled
- Class : MyClass
- Activity : My activity that will update the status.
- Params : No Params
- Agent-WideSetting: disabled

I'm new with the Agent Rule. My ultimate goal here is just to test whether my activity will be called by my agent. I'm not yet concern with the scheduling. What i want for now is just to see the result of the activity.

I'm working this for almost a week. I'm tired of this.

begging for help guys. [:(]

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

November 29, 2010 - 12:06am

check if there is any error in the logs. In case of legacy agents opening the work order, locking it, changing the status and then committing the changes to the DB everything should be taken care of by your activity. Also you need to update the access group referred in the batch requestor i.e. add your ruleset so that your activity becomes visible to the agent.

November 29, 2010 - 12:55am

@Kalinga133

Thank you for your reply.

Where can I find the log file?
Actually i'm using the Log-Message method. But i don't where to find the log file. I tried to look at Tools-->Log Files, But I can't see the current or the log/message i put.

November 29, 2010 - 2:54am

The exact location of log files would depend on your installation.
Easiest way to locate is thru Sys Management console in PRPC or do a search from the file system.

The log file names are generally PEGARules????????

January 12, 2011 - 10:26pm

Hi everybody!

tnx for your replies.

I made a simple activity that will just log/print some text in log file, for me to know if the agent i've created is really working. But unfortunately it seems it doesn't work.. no log has been printed/written.

i've been doing this for a long time... [:(]

could anyone help me on this....?

Here are the changes i made up to the agent instance/rule:

- AgentName: MyAssignedAgentName
- Pattern : Recurring
- Interval : 6
- Mode : Standard
- Enabled? : checked/enabled
- Class : MyClass
- Activity : My activity that will just log some text.
- Params : No Params
- Agent-WideSetting: enabled
- under security tab-> By pass authentication: checked/enabled

November 30, 2010 - 12:25am

In the log file there will be options. Remove the name filter from it then you will be able to see the entry in the log file if agent activity is executed..

January 13, 2011 - 11:53am

Did you check the "May Start?" check box under Security --> Start Settings for the Activity? Also What are the settings you chose for Category and Privilege Class for the activity under Security? Were you able to run the Activity without the Agent ? Have you re-cycled your App Server after the Agent was enabled ? Please ensure that the Marker File is deleted on the App Server. Also, which Version of PRPC are you on?

September 18, 2017 - 10:31am

Hi

Please Change the Agent mode to Advanced. It will Work Fine. thanks

 

Regards,

Rajesh