I'm new to agents and trying to learn by implementing a simple agent.
I created an Activity and it just adds a new record to the data type say Org-Data-Person. This activity AddPerson works perfectly.
Now I want to call this activity with the help of Agent. I did the agent configuration like shown in the image attached. From SMA I could see that the agent is running without any error. But I cant see the output. I tried tracing the agent, but no luck.
You have configured a Standard Agent which is fine. To have a Standard Agent call your activity you must create a queue record by calling the Queue-For-Agent method for example within a flow Utility shape. When configuring the Utility shape have it call the OOTB QueueForAgent activity which in turn contains a step that invokes the Queue-For-Agent method.
Have the flow route to a workbasket to commit the transaction, including the queued record, plus to release the lock on the case. Specify a large enough value for MinimumAgeforProcessing, which is expressed in milliseconds, to avoid the possibility of processing the queued item before the case lock is released. Do not reopen the case until sufficient time has elapsed for the Standard Agent to process the queued record.
If you have specified MaxAttempts as 1, and the case is locked when the Standard Agent attempts to call the activity, the queued record will be re-categorized to "Broken Process" status. If that happens you would need to use SMA (Designer Studio -> System -> Operations -> System Management Application) to locate the queued record under Agent Management -> System Queue Management to requeue the record.