## Consumer : Where is your payload? : Payload Pointer

This section is used to specify the point to get the Payload object.
The correlation Type is set to Invoked if ...
The correlation Type is set to Return if ...
The correlation Type is set to Position if ...
The field Getter Chain is used ...

- Example 1
- Example 2
- Example 3

package com.packagename;
public class ProducerClassName {

private void continuingTransaction(CustomPayload payload) {
payload.getMessage();
}

}

In the example above the method payload object 'CustomPayload' is at position 0 of method continuingTransaction.

Values to put in this section of the tool for the above example:
Correlation Type: Position
Position: 0 Getter Chain: this

package com.packagename;
public class ProducerClassName {

private CustomPayload continuingTransaction() {
return payload;
}

}

In the example above the method payload object 'CustomPayload' is returned by method continuingTransaction.

Values to put in this section of the tool for the above example:
Correlation Type: Return
Getter Chain: this

package com.packagename;
public class ProducerClassName {

private CustomPayload continuingTransaction() {
return payload;
}

}

In the example above the method payload object 'CustomPayload' is invoked by method continuingTransaction.

Values to put in this section of the tool for the above example:
Correlation Type: Invoke
Getter Chain: this