Beispiel #1
0
        private static Guid GetProcessIdFromString(string id, string formName)
        {
            if (Guid.TryParse(id, out Guid idGuid))
            {
                return(idGuid);
            }

            return(HashHelper.FromString($"{formName}_{id}"));
        }
Beispiel #2
0
        private static Guid?GetProcessId(object entityId, string formName)
        {
            if (entityId == null)
            {
                return(null);
            }

            if (entityId is Guid entityIdAsGuid)
            {
                return(entityIdAsGuid);
            }

            return(HashHelper.FromString($"{formName}_{entityId}"));
        }
Beispiel #3
0
        private static Guid?GetProcessId(object entityId, string formName)
        {
            if (entityId is Guid entityIdAsGuid)
            {
                return(entityIdAsGuid);
            }

            if (entityId == null)
            {
                return(null);
            }

            if (entityId is string && ((string)entityId).Contains("CLIENT__"))
            {
                entityId = "SPECIALWORKFLOW";
            }

            return(HashHelper.FromString($"{formName}_{entityId}"));
        }
Beispiel #4
0
        private static Guid GetProcessIdFromString(string id, string formName, string schemeName)
        {
            if (Guid.TryParse(id, out Guid idGuid))
            {
                return(idGuid);
            }

            if (id == null || id.Contains("CLIENT__"))
            {
                if (!string.IsNullOrEmpty(schemeName))
                {
                    return(Guid.NewGuid());
                }

                id = "SPECIALWORKFLOW";
            }

            return(HashHelper.FromString($"{formName}_{id}"));
        }