public static byte [ ] toByteArray ( String string , ProcessEngine processEngine ) { ProcessEngineConfigurationImpl processEngineConfiguration = ( ( ProcessEngineImpl ) processEngine ) . getProcessEngineConfiguration ( ) ; Charset charset = processEngineConfiguration . getDefaultCharset ( ) ; return string . getBytes ( charset ) ; }
Gets the bytes from a string using the provided process engine s default charset