Business process deployment error

Hi,
i will giving a reject or approve in procInstance i’m getting this error.BPM2.

  1. this is my groovy script(
import com.company.untitled1.entity.ContractApproval
def em = persistence.getEntityManager()
def contract = em.find(com.company.bpmdemo.entity.ContractApproval.class, entityId)
contract.setState('Rejected') )

what related to this script and comments box.

Please anyone as to be give me some suggestions.

Hi,
please give me a some suggetion’s to me.

Have you tried

def contract = em.find(ContractApproval.class, entityId)

?
Though I haven’t tried writing groovy at all I believe the error states com is not a declared name in
def contract = em.find(com.company.bpmdemo.entity.ContractApproval.class, entityId) but ContractApproval is the name that you need to use