OCUM 6.2 has 2 flavours of installation.
1.OVA vAPP
2.Linux RPM installer on RedHat.
I Know for sure with the vAPP you cant do anything of the sort you are looking for as its a lockdown VM.
with Linux installer you should be able to, but not sure if OCUM offers cli to do some programming.
Are you trying to trigger, a WFA workflow based on a OCUM alert ? I dont think that is availabe today
Regards
Adai