Question 1
How can workflow change values in a form element?

Example: We have an expense aproval form.

If the form transits from state ManagerA to state Reject, I want the form element Rejected by: to be automaticaly set to value ManageA.

How ho achieve this?

Question 2:
How can a workflow read a form element and based on the element value automatically transit to other state?

Example: An expense aproval form is in state ManagerA.

If a user set the form element Rejected by manually to the value ManagerA, I want the form to be automatically transited from state ManagerA to state Rejected.

How ho achieve this?